Win32 UI: Remove secondary loop for unchecking/checking Window Zoom options. It was not needed, and caused a bug..

This commit is contained in:
The Dax committed 2013-07-26 19:06:29 -04:00
1 parent 2a2a838b5e
commit 116d238d2e
1 file changed
+1 -11
+1 -11
View File
@@ -1210,7 +1210,7 @@ namespace MainWindow
ID_OPTIONS_SCREEN4X,
};
for (int i = 0; i < 4; i++) {
CheckMenuItem(menu, zoomitems[i], MF_BYCOMMAND | ((i == g_Config.iWindowZoom - 1) ? MF_CHECKED : MF_UNCHECKED));
CheckMenuItem(menu, zoomitems[i], MF_BYCOMMAND | ((i == g_Config.iWindowZoom-1) ? MF_CHECKED : MF_UNCHECKED));
}
static const int texscalingitems[] = {
@@ -1270,16 +1270,6 @@ namespace MainWindow
CheckMenuItem(menu, frameskipping[i], MF_BYCOMMAND | ( i == g_Config.iFrameSkip )? MF_CHECKED : MF_UNCHECKED);
}
static const int zoommode[] = {
ID_OPTIONS_SCREEN1X,
ID_OPTIONS_SCREEN2X,
ID_OPTIONS_SCREEN3X,
ID_OPTIONS_SCREEN4X,
};
for (int i = 0; i < 4; i++) {
CheckMenuItem(menu, zoommode[i], MF_BYCOMMAND | ( i == g_Config.iWindowZoom )? MF_CHECKED : MF_UNCHECKED);
}
UpdateCommands();
}