made logger dialog slightly smaller (95%)
This commit is contained in:
thrust26 2018-08-29 14:50:31 +02:00
parent 5365fc5c5e
commit 79fd588f8a
2 changed files with 5 additions and 4 deletions

View File

@ -43,9 +43,9 @@ LoggerDialog::LoggerDialog(OSystem& osystem, DialogContainer& parent,
WidgetArray wid;
// Set real dimensions
// This is one dialog that can take as much space as is available
_w = max_w;
_h = max_h;
// This is one dialog that can take as much space as is available, use 95%
_w = max_w * 0.95;
_h = max_h * 0.95;
// Test listing of the log output
xpos = 10; ypos = 10 + _th;

View File

@ -260,9 +260,10 @@ void OptionsDialog::handleCommand(CommandSender* sender, int cmd,
{
uInt32 w = 0, h = 0;
bool uselargefont = getResizableBounds(w, h);
const GUI::Rect& r = instance().frameBuffer().imageRect();
myLoggerDialog = make_unique<LoggerDialog>(instance(), parent(),
instance().frameBuffer().font(), w, h, uselargefont);
instance().frameBuffer().font(), r.width(), r.height(), uselargefont);
}
myLoggerDialog->open();
break;