From efa1db878976796424d9e9fea0867c188da24e17 Mon Sep 17 00:00:00 2001 From: Twan van Laarhoven Date: Thu, 16 Apr 2020 21:03:07 +0200 Subject: [PATCH] Fix text on about window --- src/gui/about_window.cpp | 4 ++++ src/gui/about_window.hpp | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gui/about_window.cpp b/src/gui/about_window.cpp index fc1f4bcb..e58e6def 100644 --- a/src/gui/about_window.cpp +++ b/src/gui/about_window.cpp @@ -27,6 +27,10 @@ AboutWindow::AboutWindow(Window* parent) ok_button->Move(ws.GetWidth() - bs.GetWidth(), ws.GetHeight() - bs.GetHeight()); // align bottom right } +bool AboutWindow::Layout() { + return false; +} + void AboutWindow::onPaint(wxPaintEvent& ev) { wxBufferedPaintDC dc(this); draw(dc); diff --git a/src/gui/about_window.hpp b/src/gui/about_window.hpp index eeff0b59..322cc151 100644 --- a/src/gui/about_window.hpp +++ b/src/gui/about_window.hpp @@ -15,10 +15,14 @@ /// Nice about dialog class AboutWindow : public wxDialog { - public: +public: AboutWindow(Window* parent); + + // Note: for some stupid reason, wxWindow::Layout makes the child of a window with a single child the same size as the whole window, + // we do not want that. + bool Layout() override; - private: +private: DECLARE_EVENT_TABLE(); // MSE logos