Skip to content

Commit

Permalink
switch: hide window border button
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Jun 6, 2019
1 parent 34a45bc commit bbb3dcb
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions apps/openmw/mwgui/settingswindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,18 @@ namespace MWGui
textBox->setVisible(false);
#endif
#ifdef __SWITCH__
MyGUI::Button *vsyncButton;
getWidget(vsyncButton, "VSyncButton");
vsyncButton->setVisible(false); // vsync is "automatically" enforced by the GPU for the switch
MyGUI::TextBox *vsyncText;
getWidget(vsyncText, "VSyncText");
vsyncText->setVisible(false);
// vsync is "automatically" enforced by the GPU for the switch, hide the button
MyGUI::Button *hideButton;
getWidget(hideButton, "VSyncButton");
hideButton->setVisible(false);
MyGUI::TextBox *hideText;
getWidget(hideText, "VSyncText");
hideText->setVisible(false);
// window border also has no effect
getWidget(hideButton, "WindowBorderButton");
hideButton->setVisible(false);
getWidget(hideText, "WindowBorderText");
hideText->setVisible(false);
#endif

mMainWidget->castType<MyGUI::Window>()->eventWindowChangeCoord += MyGUI::newDelegate(this, &SettingsWindow::onWindowResize);
Expand Down

0 comments on commit bbb3dcb

Please sign in to comment.