mirror of https://github.com/stella-emu/stella.git
Adapt dialog for various font sizes
This commit is contained in:
parent
fcce8d3cbb
commit
c7e66fff0a
|
@ -130,7 +130,7 @@ void InputDialog::addDevicePortTab()
|
||||||
myDeadzone->setTickmarkIntervals(4);
|
myDeadzone->setTickmarkIntervals(4);
|
||||||
wid.push_back(myDeadzone);
|
wid.push_back(myDeadzone);
|
||||||
|
|
||||||
xpos = HBORDER; ypos += lineHeight + VGAP * 4;
|
xpos = HBORDER; ypos += lineHeight + VGAP * 3;
|
||||||
new StaticTextWidget(myTab, _font, xpos, ypos+1, "Analog paddle:");
|
new StaticTextWidget(myTab, _font, xpos, ypos+1, "Analog paddle:");
|
||||||
xpos += fontWidth * 2;
|
xpos += fontWidth * 2;
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ void InputDialog::addDevicePortTab()
|
||||||
wid.push_back(myDejitterDiff);
|
wid.push_back(myDejitterDiff);
|
||||||
|
|
||||||
// Add paddle speed (digital emulation)
|
// Add paddle speed (digital emulation)
|
||||||
ypos += lineHeight + VGAP * 4;
|
ypos += lineHeight + VGAP * 3;
|
||||||
myDPaddleSpeed = new SliderWidget(myTab, _font, HBORDER, ypos - 1, 13 * fontWidth, lineHeight,
|
myDPaddleSpeed = new SliderWidget(myTab, _font, HBORDER, ypos - 1, 13 * fontWidth, lineHeight,
|
||||||
"Digital paddle sensitivity",
|
"Digital paddle sensitivity",
|
||||||
lwidth, kDPSpeedChanged, 4 * fontWidth, "%");
|
lwidth, kDPSpeedChanged, 4 * fontWidth, "%");
|
||||||
|
@ -173,7 +173,7 @@ void InputDialog::addDevicePortTab()
|
||||||
myDPaddleSpeed->setTickmarkIntervals(4);
|
myDPaddleSpeed->setTickmarkIntervals(4);
|
||||||
wid.push_back(myDPaddleSpeed);
|
wid.push_back(myDPaddleSpeed);
|
||||||
|
|
||||||
ypos += lineHeight + VGAP * 4;
|
ypos += lineHeight + VGAP * 3;
|
||||||
myAutoFireRate = new SliderWidget(myTab, _font, HBORDER, ypos - 1, 13 * fontWidth, lineHeight,
|
myAutoFireRate = new SliderWidget(myTab, _font, HBORDER, ypos - 1, 13 * fontWidth, lineHeight,
|
||||||
"Autofire rate",
|
"Autofire rate",
|
||||||
lwidth, kAutoFireChanged, 5 * fontWidth, "Hz");
|
lwidth, kAutoFireChanged, 5 * fontWidth, "Hz");
|
||||||
|
@ -223,7 +223,7 @@ void InputDialog::addDevicePortTab()
|
||||||
// Add AtariVox serial port
|
// Add AtariVox serial port
|
||||||
ypos += lineHeight + VGAP * 3;
|
ypos += lineHeight + VGAP * 3;
|
||||||
lwidth = _font.getStringWidth("AtariVox serial port ");
|
lwidth = _font.getStringWidth("AtariVox serial port ");
|
||||||
fwidth = _w - HBORDER * 2 - 2 - lwidth - 20;
|
fwidth = _w - HBORDER * 2 - 2 - lwidth - PopUpWidget::dropDownWidth(_font);
|
||||||
VariantList items;
|
VariantList items;
|
||||||
VarList::push_back(items, "None detected", "");
|
VarList::push_back(items, "None detected", "");
|
||||||
myAVoxPort = new PopUpWidget(myTab, _font, HBORDER, ypos, fwidth, lineHeight, items,
|
myAVoxPort = new PopUpWidget(myTab, _font, HBORDER, ypos, fwidth, lineHeight, items,
|
||||||
|
|
Loading…
Reference in New Issue