|
9 | 9 | #include <SysUtils.hpp>
|
10 | 10 | #include <Registry.hpp>
|
11 | 11 | #include <System.Hash.hpp>
|
12 |
| -#include <VersionHelpers.h> |
13 | 12 | #include "ConfigFormUnit.h"
|
14 | 13 | //---------------------------------------------------------------------------
|
15 | 14 | #pragma package(smart_init)
|
@@ -1286,11 +1285,6 @@ void __fastcall TConfigForm::FormCreate(TObject *Sender)
|
1286 | 1285 |
|
1287 | 1286 | delete ini;
|
1288 | 1287 |
|
1289 |
| - VsyncChk->Enabled = VsyncAllowed(); |
1290 |
| - if (!VsyncChk->Enabled) { |
1291 |
| - VsyncChk->State = tssOff; |
1292 |
| - } |
1293 |
| - |
1294 | 1288 | Initialized = true;
|
1295 | 1289 | }
|
1296 | 1290 |
|
@@ -1712,31 +1706,8 @@ bool TConfigForm::GetBool(TIniFile *ini, System::UnicodeString key, bool defValu
|
1712 | 1706 | return s == "true" || s == "yes" || s == "1";
|
1713 | 1707 | }
|
1714 | 1708 |
|
1715 |
| -bool TConfigForm::VsyncAllowed() |
1716 |
| -{ |
1717 |
| - if (GetProcAddress(GetModuleHandleW(L"ntdll.dll"), "wine_get_version")) { |
1718 |
| - return true; |
1719 |
| - } |
1720 |
| - |
1721 |
| - if (!IsWindows8OrGreater()) { |
1722 |
| - return true; |
1723 |
| - } |
1724 |
| - |
1725 |
| - if (NonexclusiveChk->State == tssOff && |
1726 |
| - (PresentationCbx->ItemIndex == 0 || PresentationCbx->ItemIndex == 1)) { |
1727 |
| - return true; |
1728 |
| - } |
1729 |
| - |
1730 |
| - return false; |
1731 |
| -} |
1732 |
| - |
1733 | 1709 | void __fastcall TConfigForm::PresentationCbxChange(TObject *Sender)
|
1734 | 1710 | {
|
1735 |
| - VsyncChk->Enabled = VsyncAllowed(); |
1736 |
| - if (!VsyncChk->Enabled) { |
1737 |
| - VsyncChk->State = tssOff; |
1738 |
| - } |
1739 |
| - |
1740 | 1711 | SaveSettings();
|
1741 | 1712 | }
|
1742 | 1713 |
|
@@ -1845,11 +1816,6 @@ void __fastcall TConfigForm::SinglecpuChkClick(TObject *Sender)
|
1845 | 1816 |
|
1846 | 1817 | void __fastcall TConfigForm::NonexclusiveChkClick(TObject *Sender)
|
1847 | 1818 | {
|
1848 |
| - VsyncChk->Enabled = VsyncAllowed(); |
1849 |
| - if (!VsyncChk->Enabled) { |
1850 |
| - VsyncChk->State = tssOff; |
1851 |
| - } |
1852 |
| - |
1853 | 1819 | SaveSettings();
|
1854 | 1820 | }
|
1855 | 1821 |
|
|
0 commit comments