From 79fd588f8a4a9e48fb35fdc3290f179d7e42c4fc Mon Sep 17 00:00:00 2001 From: thrust26 Date: Wed, 29 Aug 2018 14:50:31 +0200 Subject: [PATCH] fixed #367 made logger dialog slightly smaller (95%) --- src/gui/LoggerDialog.cxx | 6 +++--- src/gui/OptionsDialog.cxx | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/LoggerDialog.cxx b/src/gui/LoggerDialog.cxx index 18fb3b913..35b6cf4c6 100644 --- a/src/gui/LoggerDialog.cxx +++ b/src/gui/LoggerDialog.cxx @@ -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; diff --git a/src/gui/OptionsDialog.cxx b/src/gui/OptionsDialog.cxx index 584e414b0..afcbde585 100644 --- a/src/gui/OptionsDialog.cxx +++ b/src/gui/OptionsDialog.cxx @@ -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(instance(), parent(), - instance().frameBuffer().font(), w, h, uselargefont); + instance().frameBuffer().font(), r.width(), r.height(), uselargefont); } myLoggerDialog->open(); break;