Changing GUI zoom factor will also change resolution

Conflicts:
	src/settings_gui.cpp
This commit is contained in:
Sergii Pylypenko
2015-04-29 21:09:36 +03:00
committed by pelya
parent eadf5e9f4a
commit d2a582fb9e

View File

@@ -570,8 +570,15 @@ struct GameOptionsWindow : Window {
case WID_GO_GUI_ZOOM_DROPDOWN:
GfxClearSpriteCache();
_gui_zoom = (ZoomLevel)(ZOOM_LVL_OUT_4X - index);
switch (_gui_zoom) {
case ZOOM_LVL_NORMAL: ChangeResInGame(854, 480); break;
case ZOOM_LVL_OUT_2X: ChangeResInGame(1280, 720); break;
case ZOOM_LVL_OUT_4X: ChangeResInGame(1920, 1080); break;
default: break;
}
UpdateCursorSize();
LoadStringWidthTable();
ReconstructUserInterface();
break;
case WID_GO_BASE_GRF_DROPDOWN: