Skip to content

Commit

Permalink
Embarcadero themes have conflicts with Windows 10 Anniversay update, …
Browse files Browse the repository at this point in the history
…so we get back to default Windows one in 10 or later (RejZoR, TPS)

git-svn-id: svn://svn.code.sf.net/p/nikkhokkho/code/trunk@540 ddd8a7e7-04a1-4c0d-ae79-48073a28b335
  • Loading branch information
nikkho committed Aug 14, 2016
1 parent aa27b89 commit 212c6ee
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion FileOptimizer/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ X.XX - YYYY/MM/DD
- Enhanced update checker.
- Implemented a Statistics section that can be checked inside the Information window.
- Improved single instance detection, because it did not work properly on Vista and later (Special).
- Switched back to Windows theme if Windows 10 theme has been selected, because it causes issues with TaskDialogs in Windows 10 Anniversary (RejZoR).
- Embarcadero themes have conflicts with Windows 10 Anniversay update, so we get back to default Windows one in 10 or later (RejZoR, TPS).
- Made abort optimization message more clearer (Louis Horvath).
- Fixed main window position not properly restored on launch (hairycactus).
- Simplified ECT multithreading, because it already knows the number of threads to use.
Expand Down
4 changes: 2 additions & 2 deletions FileOptimizer/FileOptimizer.cbproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<AppType>Application</AppType>
<MainSource>FileOptimizer.cpp</MainSource>
<Base>True</Base>
<Config Condition="'$(Config)'==''">Release</Config>
<Platform Condition="'$(Platform)'==''">Win64</Platform>
<Config Condition="'$(Config)'==''">Debug</Config>
<Platform Condition="'$(Platform)'==''">Win32</Platform>
<TargetedPlatforms>3</TargetedPlatforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Config)'=='Base' or '$(Base)'!=''">
Expand Down
10 changes: 5 additions & 5 deletions FileOptimizer/FileOptimizer.stat
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Stats]
EditorSecs=24402
DesignerSecs=1384
EditorSecs=24666
DesignerSecs=1411
InspectorSecs=1402
CompileSecs=8056197
OtherSecs=7681
CompileSecs=8104593
OtherSecs=7672
StartTime=07/04/2015 13:17:38
RealKeys=0
EffectiveKeys=0
DebugSecs=12810
DebugSecs=13166
1 change: 1 addition & 0 deletions FileOptimizer/Source/clsUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@ unsigned int __fastcall clsUtil::GetWindowsVersion(void)
iWindowsVersion = (LOBYTE(LOWORD(iWindowsVersion))) * 100 + (HIBYTE(LOWORD(iWindowsVersion)));
}
}
//500: Windows 2000; 501: Windows XP; 502: Windows XP x64/Windows 2003; 600: Windows Vista/2008; 601: Windows 7/Windows 2008 R2; 602: Windows 8/Windows 2012; 603: Windows 8.1; 1000: Windows 10
return(iWindowsVersion);
}

Expand Down
4 changes: 2 additions & 2 deletions FileOptimizer/Source/cppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ void __fastcall TfrmMain::FormCreate(TObject *Sender)
_tcscpy(gudtOptions.acTheme, GetOption(_T("Options"), _T("Theme"), _T("Windows")));
}

//Switch back to Windows theme if Windows 10 theme has been selected, because it causes issues with TaskDialogs in Windows 10 Anniversary
if (_tcscmp(gudtOptions.acTheme, _T("Windows10")) == 0)
//Embarcadero themes have conflicts with Windows 10 Anniversay update, so we get back to default Windows one.
if (clsUtil::GetWindowsVersion() >= 1000)
{
_tcscpy(gudtOptions.acTheme, _T("Windows"));
}
Expand Down

1 comment on commit 212c6ee

@TPS
Copy link

@TPS TPS commented on 212c6ee Aug 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.