Simplify & win11-build check fix

Without build check on Windows 10 it will appear as Windows 11, I forgot to keep build check, also the process can be simplified more to avoid extra functions.
This commit is contained in:
Bashar Astifan committed 2024-09-04 22:56:37 +04:00
1 parent b015225bf6
commit e7d7d89066
4 files changed
+19 -17

No files matched your search

+1 -1
View File
@@ -765,7 +765,7 @@ namespace MainWindow
switch (message) {
case WM_CREATE:
if (!DoesVersionMatchWindows(6, 0, 0, 0, true)) {
if (!IsVistaOrHigher()) {
// Remove the D3D11 choice on versions below XP
RemoveMenu(GetMenu(hWnd), ID_OPTIONS_DIRECT3D11, MF_BYCOMMAND);
}