File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -1772,21 +1772,26 @@ void CCore::ApplyCoreInitSettings()
1772
1772
#if (_WIN32_WINNT >= _WIN32_WINNT_LONGHORN)
1773
1773
const auto aware = CVARS_GET_VALUE<bool >(" process_dpi_aware" );
1774
1774
1775
+ // The minimum supported client for the function below is Windows Vista (Longhorn).
1776
+ // For more information, refer to the Microsoft Learn article:
1777
+ // https://learn.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows
1775
1778
if (aware)
1776
1779
SetProcessDPIAware ();
1777
1780
#endif
1778
1781
1779
1782
const auto revision = GetApplicationSettingInt (" reset-settings-revision" );
1780
1783
1781
- if (revision >= 21486 )
1782
- return ;
1783
-
1784
- const auto skin = CVARS_GET_VALUE<std::string>(" current_skin" );
1784
+ // Users with the default skin will be switched to the 2023 version by replacing "Default" with "Default 2023".
1785
+ // The "Default 2023" GUI skin was introduced in commit 2d9e03324b07e355031ecb3263477477f1a91399.
1786
+ if (revision < 21486 )
1787
+ {
1788
+ const auto skin = CVARS_GET_VALUE<std::string>(" current_skin" );
1785
1789
1786
- if (skin == " Default" )
1787
- CVARS_SET (" current_skin" , " Default 2023" );
1790
+ if (skin == " Default" )
1791
+ CVARS_SET (" current_skin" , " Default 2023" );
1788
1792
1789
- SetApplicationSettingInt (" reset-settings-revision" , 21486 );
1793
+ SetApplicationSettingInt (" reset-settings-revision" , 21486 );
1794
+ }
1790
1795
1791
1796
const auto process = GetCurrentProcess ();
1792
1797
const int priorities[] = {NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, HIGH_PRIORITY_CLASS};
You can’t perform that action at this time.
0 commit comments