Merge pull request #29 from rkitover/master
fix DisplayConfig panel brkn in 7a7a72f
This commit is contained in:
commit
9200bba41d
|
@ -2899,6 +2899,11 @@ bool MainFrame::BindControls()
|
|||
tc = SafeXRCCTRL<wxTextCtrl>(d, n); \
|
||||
tc->SetValidator(wxTextValidator(wxFILTER_NONE, &o)); \
|
||||
} while (0)
|
||||
#define getgtc(n, o) \
|
||||
do { \
|
||||
tc = SafeXRCCTRL<wxTextCtrl>(d, n); \
|
||||
tc->SetValidator(wxGenericValidator(&o)); \
|
||||
} while (0)
|
||||
#ifndef NO_LINK
|
||||
{
|
||||
net_link_handler.dlg = d;
|
||||
|
@ -3294,7 +3299,7 @@ bool MainFrame::BindControls()
|
|||
/// Zoom
|
||||
// this was a choice, but I'd rather not have to make an off-by-one
|
||||
// validator just for this, and spinctrl is good enough.
|
||||
getsc("DefaultScale", gopts.video_scale);
|
||||
getgtc("DefaultScale", gopts.video_scale);
|
||||
getsc("MaxScale", maxScale);
|
||||
/// Advanced
|
||||
getrbi("OutputSimple", gopts.render_method, RND_SIMPLE);
|
||||
|
|
|
@ -1041,6 +1041,10 @@ void GameArea::OnIdle(wxIdleEvent& event)
|
|||
|
||||
if (pointer_blanked)
|
||||
w->SetCursor(wxCursor(wxCURSOR_BLANK));
|
||||
|
||||
// if user changed Display/Scale config, this needs to run
|
||||
AdjustMinSize();
|
||||
AdjustSize(false);
|
||||
}
|
||||
|
||||
if (!paused && (!pauseWhenInactive || wxGetApp().frame->HasFocus())) {
|
||||
|
|
|
@ -106,9 +106,7 @@
|
|||
<border>5</border>
|
||||
</object>
|
||||
<object class="sizeritem">
|
||||
<object class="wxSpinCtrl" name="DefaultScale">
|
||||
<min>1</min>
|
||||
<max>6</max>
|
||||
<object class="wxTextCtrl" name="DefaultScale">
|
||||
</object>
|
||||
<option>1</option>
|
||||
<flag>wxALL|wxEXPAND</flag>
|
||||
|
|
Loading…
Reference in New Issue