aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmniTroid <davidskoland@gmail.com>2017-03-03 01:14:52 +0100
committerOmniTroid <davidskoland@gmail.com>2017-03-03 01:14:52 +0100
commitfd6a9a2f9dd9cef0ab1d71cd2c28f1d7c79f8b7e (patch)
tree009ba4e283490a2dabc29eeedcfb9e3dc87e853d
parent9ccb75e5f8eb190613dec820b8a8d70dcad79df2 (diff)
fixed an issue related to scaling charselect background
-rw-r--r--courtroom.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/courtroom.cpp b/courtroom.cpp
index 2301715d..f70db1c6 100644
--- a/courtroom.cpp
+++ b/courtroom.cpp
@@ -544,12 +544,6 @@ void Courtroom::set_widgets()
set_size_and_pos(ui_evidence, "evidence_background");
ui_evidence->set_image("evidencebackground.png");
- //char select stuff under here
-
- ui_char_select_background->move(0, 0);
- ui_char_select_background->resize(m_courtroom_width, m_courtroom_height);
- ui_char_select_background->set_image("charselect_background.png");
-
//buttons are in the constructor
ui_selector->set_image("char_selector.png");
@@ -670,6 +664,7 @@ void Courtroom::set_char_select()
else
this->resize(f_charselect.width, f_charselect.height);
+ ui_char_select_background->resize(f_charselect.width, f_charselect.height);
ui_char_select_background->set_image("charselect_background.png");
}