resolution switch somewhat functional

This commit is contained in:
Arisotura
2019-05-12 17:43:39 +02:00
parent f5ba35ca9f
commit 02b4919005
3 changed files with 85 additions and 41 deletions

View File

@ -28,7 +28,7 @@
#include "DlgVideoSettings.h"
//
void ApplyNewSettings(int type);
namespace DlgVideoSettings
@ -50,7 +50,8 @@ void OnResolutionChanged(uiRadioButtons* rb, void* blarg)
{
int id = uiRadioButtonsSelected(rb);
printf("res=%d\n", id);
Config::ScreenScale = id;
ApplyNewSettings(2);
}
void OnCancel(uiButton* btn, void* blarg)
@ -167,8 +168,8 @@ void Open()
uiRadioButtons* rbApplyScalingTo = uiNewRadioButtons();
uiRadioButtonsAppend(rbApplyScalingTo, "Both screens");
uiRadioButtonsAppend(rbApplyScalingTo, "Emphasized screen (see 'Screen sizing')");
uiRadioButtonsAppend(rbApplyScalingTo, "Top screen");
uiRadioButtonsAppend(rbApplyScalingTo, "Bottom screen");
//uiRadioButtonsAppend(rbApplyScalingTo, "Top screen");
//uiRadioButtonsAppend(rbApplyScalingTo, "Bottom screen");
uiBoxAppend(in_ctrl, uiControl(rbApplyScalingTo), 0);
}