mirror of https://github.com/stella-emu/stella.git
Help dialog closes with ESC again
This commit is contained in:
parent
32e9c14b0d
commit
97553b9d93
|
@ -61,7 +61,7 @@ AboutDialog::AboutDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight,
|
new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight,
|
||||||
"Close", GuiObject::kCloseCmd);
|
"Close", GuiObject::kCloseCmd);
|
||||||
wid.push_back(b);
|
wid.push_back(b);
|
||||||
addOKWidget(b); addCancelWidget(b);
|
addCancelWidget(b);
|
||||||
|
|
||||||
xpos = 5; ypos = 5 + _th;
|
xpos = 5; ypos = 5 + _th;
|
||||||
myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - xpos * 2, fontHeight,
|
myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - xpos * 2, fontHeight,
|
||||||
|
|
|
@ -60,6 +60,7 @@ HelpDialog::HelpDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight,
|
new ButtonWidget(this, font, xpos, ypos, buttonWidth, buttonHeight,
|
||||||
"Close", GuiObject::kCloseCmd);
|
"Close", GuiObject::kCloseCmd);
|
||||||
wid.push_back(b);
|
wid.push_back(b);
|
||||||
|
addCancelWidget(b);
|
||||||
|
|
||||||
xpos = 5; ypos = 5 + _th;
|
xpos = 5; ypos = 5 + _th;
|
||||||
myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - 10, fontHeight,
|
myTitle = new StaticTextWidget(this, font, xpos, ypos, _w - 10, fontHeight,
|
||||||
|
|
Loading…
Reference in New Issue