From 012ffda2d765c965302427f42955e7c33aa9711b Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Thu, 5 Sep 2024 22:57:07 +0200 Subject: [PATCH] bugfix: Some Textboxes should not have a frame drawn --- src/osdep/gui/ControllerMap.cpp | 1 + src/osdep/gui/ShowMessage.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/osdep/gui/ControllerMap.cpp b/src/osdep/gui/ControllerMap.cpp index 1dba46713..76e82d9fa 100644 --- a/src/osdep/gui/ControllerMap.cpp +++ b/src/osdep/gui/ControllerMap.cpp @@ -204,6 +204,7 @@ static void InitControllerMap() txtInformation->setBackgroundColor(gui_base_color); txtInformation->setForegroundColor(gui_foreground_color); txtInformation->setEditable(false); + txtInformation->setFrameSize(0); lblMessage = new gcn::Label("Press: "); lblPressButtonAxis = new gcn::Label(""); diff --git a/src/osdep/gui/ShowMessage.cpp b/src/osdep/gui/ShowMessage.cpp index 05a49cc90..4ab939302 100644 --- a/src/osdep/gui/ShowMessage.cpp +++ b/src/osdep/gui/ShowMessage.cpp @@ -216,6 +216,7 @@ static void InitShowMessage(const std::string& message) txtMessageText->setBackgroundColor(gui_base_color); txtMessageText->setForegroundColor(gui_foreground_color); txtMessageText->setEditable(false); + txtMessageText->setFrameSize(0); lblText1 = new gcn::Label(""); lblText1->setSize(DIALOG_WIDTH - 2 * DISTANCE_BORDER, LABEL_HEIGHT); lblText2 = new gcn::Label("");