Commit 6455fbce authored by thrust26's avatar thrust26
Browse files

added info to "Correct aspect ratio" UI setting

parent 2f7d7c04
docs/graphics/options_video.png

3.13 KB | W: | H:

docs/graphics/options_video.png

3.49 KB | W: | H:

docs/graphics/options_video.png
docs/graphics/options_video.png
docs/graphics/options_video.png
docs/graphics/options_video.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -102,6 +102,7 @@ VideoAudioDialog::VideoAudioDialog(OSystem& osystem, DialogContainer& parent,
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void VideoAudioDialog::addDisplayTab()
{
const GUI::Font& ifont = instance().frameBuffer().infoFont();
const int lineHeight = _font.getLineHeight(),
fontHeight = _font.getFontHeight(),
fontWidth = _font.getMaxCharWidth();
......@@ -165,7 +166,7 @@ void VideoAudioDialog::addDisplayTab()
// Aspect ratio correction
ypos += lineHeight + VGAP * 4;
myCorrectAspect = new CheckboxWidget(myTab, _font, xpos, ypos + 1, "Correct aspect ratio");
myCorrectAspect = new CheckboxWidget(myTab, _font, xpos, ypos + 1, "Correct aspect ratio (*)");
wid.push_back(myUseStretch);
// Vertical size
......@@ -177,6 +178,14 @@ void VideoAudioDialog::addDisplayTab()
myVSizeAdjust->setTickmarkIntervals(2);
wid.push_back(myVSizeAdjust);
// Add message concerning usage
ypos = myTab->getHeight() - fontHeight - ifont.getFontHeight() - VGAP - VBORDER;
int iwidth = ifont.getStringWidth("(*) Change may require an application restart");
new StaticTextWidget(myTab, ifont, xpos, ypos,
std::min(iwidth, _w - HBORDER * 2), ifont.getFontHeight(),
"(*) Change may require an application restart");
// Add items for tab 0
addToFocusList(wid, myTab, tabID);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment