mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Improvements to D3D11 detection and error handling.
This commit is contained in:
1 parent
85ce4ac219
commit
acde17e3ce
8 files changed
+98
-64
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user