From 918f8b88900159232e76c5986ef01faac082550f Mon Sep 17 00:00:00 2001 From: thrust26 Date: Mon, 13 May 2019 19:52:59 +0200 Subject: [PATCH] add restart info text for HiDPI mode --- src/gui/UIDialog.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gui/UIDialog.cxx b/src/gui/UIDialog.cxx index e708b82f5..72f2a71a7 100644 --- a/src/gui/UIDialog.cxx +++ b/src/gui/UIDialog.cxx @@ -99,7 +99,7 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent, ypos += lineHeight + V_GAP; // Enable HiDPI mode - myHidpiWidget = new CheckboxWidget(myTab, font, xpos, ypos, "HiDPI mode"); + myHidpiWidget = new CheckboxWidget(myTab, font, xpos, ypos, "HiDPI mode (*)"); wid.push_back(myHidpiWidget); ypos += lineHeight + V_GAP * 4; @@ -124,6 +124,12 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent, myWheelLinesPopup->setTickmarkInterval(3); wid.push_back(myWheelLinesPopup); + // Add message concerning usage + ypos = myTab->getHeight() - 5 - fontHeight - ifont.getFontHeight() - 10; + lwidth = ifont.getStringWidth("(*) Change requires application restart"); + new StaticTextWidget(myTab, ifont, xpos, ypos, std::min(lwidth, _w - 20), fontHeight, + "(*) Change requires application restart"); + // Add items for tab 0 addToFocusList(wid, myTab, tabID); @@ -215,8 +221,7 @@ UIDialog::UIDialog(OSystem& osystem, DialogContainer& parent, ypos = myTab->getHeight() - 5 - fontHeight - ifont.getFontHeight() - 10; lwidth = ifont.getStringWidth("(*) Changes require application restart"); new StaticTextWidget(myTab, ifont, xpos, ypos, std::min(lwidth, _w - 20), fontHeight, - "(*) Changes require application restart", - TextAlign::Left); + "(*) Changes require application restart"); // Add items for tab 1 addToFocusList(wid, myTab, tabID);