Change Win UI constants to use D3D9 not DX.

This commit is contained in:
Unknown W. Brackets committed 2016-01-05 23:08:20 -08:00
1 parent b1e10894a4
commit 48ef1ae8ca
3 files changed
+7 -7

No files matched your search

+5 -5
View File
@@ -270,7 +270,7 @@ namespace MainWindow {
TranslateSubMenu(menu, "Window Size", MENU_OPTIONS, SUBMENU_WINDOW_SIZE);
// Skip window size 1x-4x..
TranslateSubMenu(menu, "Backend", MENU_OPTIONS, SUBMENU_RENDERING_BACKEND);
TranslateMenuItem(menu, ID_OPTIONS_DIRECTX);
TranslateMenuItem(menu, ID_OPTIONS_DIRECT3D9);
TranslateMenuItem(menu, ID_OPTIONS_OPENGL);
TranslateSubMenu(menu, "Rendering Mode", MENU_OPTIONS, SUBMENU_RENDERING_MODE);
TranslateMenuItem(menu, ID_OPTIONS_NONBUFFEREDRENDERING);
@@ -665,7 +665,7 @@ namespace MainWindow {
NativeMessageReceived("gpu clear cache", "");
break;
case ID_OPTIONS_DIRECTX:
case ID_OPTIONS_DIRECT3D9:
g_Config.iGPUBackend = GPU_BACKEND_DIRECT3D9;
// TODO: Remove once software renderer supports D3D9.
g_Config.bSoftwareRendering = false;
@@ -1108,13 +1108,13 @@ namespace MainWindow {
}
if (g_Config.iGPUBackend == GPU_BACKEND_DIRECT3D9) {
EnableMenuItem(menu, ID_OPTIONS_DIRECTX, MF_GRAYED);
CheckMenuItem(menu, ID_OPTIONS_DIRECTX, MF_CHECKED);
EnableMenuItem(menu, ID_OPTIONS_DIRECT3D9, MF_GRAYED);
CheckMenuItem(menu, ID_OPTIONS_DIRECT3D9, MF_CHECKED);
EnableMenuItem(menu, ID_OPTIONS_OPENGL, MF_ENABLED);
} else {
EnableMenuItem(menu, ID_OPTIONS_OPENGL, MF_GRAYED);
CheckMenuItem(menu, ID_OPTIONS_OPENGL, MF_CHECKED);
EnableMenuItem(menu, ID_OPTIONS_DIRECTX, MF_ENABLED);
EnableMenuItem(menu, ID_OPTIONS_DIRECT3D9, MF_ENABLED);
}
UpdateDynamicMenuCheckmarks(menu);
+1 -1
View File
@@ -471,7 +471,7 @@ BEGIN
POPUP "Backend"
BEGIN
MENUITEM "Direct3D9" ID_OPTIONS_DIRECTX
MENUITEM "Direct3D9" ID_OPTIONS_DIRECT3D9
MENUITEM "OpenGL" ID_OPTIONS_OPENGL
END
+1 -1
View File
@@ -316,7 +316,7 @@
#define ID_DEBUG_SAVESYMFILE 40151
#define ID_OPTIONS_BUFLINEARFILTER 40152
#define ID_OPTIONS_BUFNEARESTFILTER 40153
#define ID_OPTIONS_DIRECTX 40154
#define ID_OPTIONS_DIRECT3D9 40154
#define ID_OPTIONS_OPENGL 40155
// Dummy option to let the buffered rendering hotkey cycle through all the options.