mirror of https://github.com/stella-emu/stella.git
parent
5365fc5c5e
commit
79fd588f8a
|
@ -43,9 +43,9 @@ LoggerDialog::LoggerDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
WidgetArray wid;
|
WidgetArray wid;
|
||||||
|
|
||||||
// Set real dimensions
|
// Set real dimensions
|
||||||
// This is one dialog that can take as much space as is available
|
// This is one dialog that can take as much space as is available, use 95%
|
||||||
_w = max_w;
|
_w = max_w * 0.95;
|
||||||
_h = max_h;
|
_h = max_h * 0.95;
|
||||||
|
|
||||||
// Test listing of the log output
|
// Test listing of the log output
|
||||||
xpos = 10; ypos = 10 + _th;
|
xpos = 10; ypos = 10 + _th;
|
||||||
|
|
|
@ -260,9 +260,10 @@ void OptionsDialog::handleCommand(CommandSender* sender, int cmd,
|
||||||
{
|
{
|
||||||
uInt32 w = 0, h = 0;
|
uInt32 w = 0, h = 0;
|
||||||
bool uselargefont = getResizableBounds(w, h);
|
bool uselargefont = getResizableBounds(w, h);
|
||||||
|
const GUI::Rect& r = instance().frameBuffer().imageRect();
|
||||||
|
|
||||||
myLoggerDialog = make_unique<LoggerDialog>(instance(), parent(),
|
myLoggerDialog = make_unique<LoggerDialog>(instance(), parent(),
|
||||||
instance().frameBuffer().font(), w, h, uselargefont);
|
instance().frameBuffer().font(), r.width(), r.height(), uselargefont);
|
||||||
}
|
}
|
||||||
myLoggerDialog->open();
|
myLoggerDialog->open();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue