From 396c51510ac9143027091e32bb9718033a55316c Mon Sep 17 00:00:00 2001 From: The Dax Date: Mon, 29 Jul 2013 18:05:08 -0400 Subject: [PATCH] More cleanup, remove old CONTROLS dialog info. --- Windows/WndMainWindow.cpp | 66 ++++++++++++++++---------------------- Windows/ppsspp.rc | 5 --- Windows/resource.h | Bin 21576 -> 21486 bytes 3 files changed, 28 insertions(+), 43 deletions(-) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 26d4aa19a..9c2deae59 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -199,6 +199,13 @@ namespace MainWindow void setZoom(float zoom) { if (zoom < 5) g_Config.iWindowZoom = (int) zoom; + + I18NCategory *g = GetI18NCategory("Graphics"); + + char message[256]; + sprintf(message, "%dx Rendering Resolution", g_Config.iWindowZoom); + osm.Show(g->T(message)); + RECT rc, rcOuter; GetWindowRectAtZoom((int) zoom, rc, rcOuter); MoveWindow(hwndMain, rcOuter.left, rcOuter.top, rcOuter.right - rcOuter.left, rcOuter.bottom - rcOuter.top, TRUE); @@ -236,6 +243,27 @@ namespace MainWindow void setRenderingMode(int mode) { g_Config.iRenderingMode = mode; + + I18NCategory *g = GetI18NCategory("Graphics"); + + switch(g_Config.iRenderingMode) { + case FB_NON_BUFFERED_MODE: + osm.Show(g->T("Non-Buffered Rendering")); + break; + + case FB_BUFFERED_MODE: + osm.Show(g->T("Buffered Rendering")); + break; + + case FB_READFBOMEMORY_CPU: + osm.Show(g->T("Read Framebuffer to Memory (CPU)")); + break; + + case FB_READFBOMEMORY_GPU: + osm.Show(g->T("Read Framebuffer to Memory (GPU)")); + break; + } + if (gpu) gpu->Resized(); } @@ -727,26 +755,7 @@ namespace MainWindow case ID_OPTIONS_SCREENDUMMY: g_Config.iWindowZoom = ++g_Config.iWindowZoom > 4 ? 1 : g_Config.iWindowZoom; - switch(g_Config.iWindowZoom) { - case 1: - osm.Show(g->T("1x Rendering Resolution")); - break; - - case 2: - osm.Show(g->T("2x Rendering Resolution")); - break; - - case 3: - osm.Show(g->T("3x Rendering Resolution")); - break; - - case 4: - osm.Show(g->T("4x Rendering Resolution")); - break; - } - setZoom(g_Config.iWindowZoom); - break; case ID_OPTIONS_MIPMAP: @@ -818,26 +827,7 @@ namespace MainWindow case ID_OPTIONS_BUFFEREDRENDERINGDUMMY: g_Config.iRenderingMode = ++g_Config.iRenderingMode > 3? 0 : g_Config.iRenderingMode; - switch(g_Config.iRenderingMode) { - case FB_NON_BUFFERED_MODE: - osm.Show(g->T("Non-Buffered Rendering")); - break; - - case FB_BUFFERED_MODE: - osm.Show(g->T("Buffered Rendering")); - break; - - case FB_READFBOMEMORY_CPU: - osm.Show(g->T("Read Framebuffer to Memory (CPU)")); - break; - - case FB_READFBOMEMORY_GPU: - osm.Show(g->T("Read Framebuffer to Memory (GPU)")); - break; - } - setRenderingMode(g_Config.iRenderingMode); - break; case ID_OPTIONS_SHOWDEBUGSTATISTICS: diff --git a/Windows/ppsspp.rc b/Windows/ppsspp.rc index b2526d8d1..01d460746 100644 --- a/Windows/ppsspp.rc +++ b/Windows/ppsspp.rc @@ -285,11 +285,6 @@ BEGIN RIGHTMARGIN, 247 BOTTOMMARGIN, 413 END - - IDD_CONTROLS, DIALOG - BEGIN - RIGHTMARGIN, 440 - END END #endif // APSTUDIO_INVOKED diff --git a/Windows/resource.h b/Windows/resource.h index 22505698d79102f6e0532d726ab4f827a177a7fa..a2845517abc579d515f6268420c7546a1146eb59 100644 GIT binary patch delta 14 WcmX@Hg7MvQ#tm{}n=8aF*a84DuLe2* delta 34 scmV+-0NwxYrvb>Q0k9qxlf*kLlQ04dldu*9lR^O+lfV@OvmO@EJ?MN4C;$Ke