Improvements to D3D11 detection and error handling.

This commit is contained in:
Henrik Rydgard committed 2017-02-23 10:40:55 +01:00
1 parent 85ce4ac219
commit acde17e3ce
8 files changed
+98 -64

No files matched your search

+6
View File
@@ -23,6 +23,8 @@
#include "Common/CommonWindows.h"
#include "Common/KeyMap.h"
#include "Common/OSVersion.h"
#include <Windowsx.h>
#include <map>
@@ -640,6 +642,10 @@ namespace MainWindow
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {
switch (message) {
case WM_CREATE:
if (!DoesVersionMatchWindows(6, 0, 0, 0, true)) {
// Remove the D3D11 choice on versions below XP
RemoveMenu(GetMenu(hWnd), ID_OPTIONS_DIRECT3D11, MF_BYCOMMAND);
}
break;
case WM_GETMINMAXINFO: