mirror of https://github.com/stella-emu/stella.git
added info to "Correct aspect ratio" UI setting
This commit is contained in:
parent
80b87bd0b9
commit
bd89f3c810
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.5 KiB |
|
@ -102,6 +102,7 @@ VideoAudioDialog::VideoAudioDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void VideoAudioDialog::addDisplayTab()
|
void VideoAudioDialog::addDisplayTab()
|
||||||
{
|
{
|
||||||
|
const GUI::Font& ifont = instance().frameBuffer().infoFont();
|
||||||
const int lineHeight = _font.getLineHeight(),
|
const int lineHeight = _font.getLineHeight(),
|
||||||
fontHeight = _font.getFontHeight(),
|
fontHeight = _font.getFontHeight(),
|
||||||
fontWidth = _font.getMaxCharWidth();
|
fontWidth = _font.getMaxCharWidth();
|
||||||
|
@ -165,7 +166,7 @@ void VideoAudioDialog::addDisplayTab()
|
||||||
|
|
||||||
// Aspect ratio correction
|
// Aspect ratio correction
|
||||||
ypos += lineHeight + VGAP * 4;
|
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);
|
wid.push_back(myUseStretch);
|
||||||
|
|
||||||
// Vertical size
|
// Vertical size
|
||||||
|
@ -177,6 +178,14 @@ void VideoAudioDialog::addDisplayTab()
|
||||||
myVSizeAdjust->setTickmarkIntervals(2);
|
myVSizeAdjust->setTickmarkIntervals(2);
|
||||||
wid.push_back(myVSizeAdjust);
|
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
|
// Add items for tab 0
|
||||||
addToFocusList(wid, myTab, tabID);
|
addToFocusList(wid, myTab, tabID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue