aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2020-03-26 14:41:56 +0300
committerCrystalwarrior <varsash@gmail.com>2020-03-26 14:41:56 +0300
commit1634db78641526ddb88f844a46b1bdc615a89e59 (patch)
tree58767eeff7b6a58bc257bf3db0f4b9f6f9e5a92c /src/courtroom.cpp
parentf668d70ac5e5ed7dff8ddb4508e2b8adfcba7d66 (diff)
Make backgrounds preserve aspect ratio when used with different aspect ratio themes
(e.g. a 16:9 theme would not stretch a 4:3 bg and instead have a letterboxing effect. A 4:3 theme using a 16:9 BG will not stretch the BG but instead center it, making it look like the BG is 4:3 all along.)
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 8cf5751e..dbe53236 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -487,7 +487,7 @@ void Courtroom::set_widgets()
ui_settings->show();
ui_vp_background->move(0, 0);
- ui_vp_background->resize(ui_viewport->width(), ui_viewport->height());
+ ui_vp_background->combo_resize(ui_viewport->width(), ui_viewport->height());
ui_vp_speedlines->move(0, 0);
ui_vp_speedlines->combo_resize(ui_viewport->width(), ui_viewport->height());
@@ -500,7 +500,7 @@ void Courtroom::set_widgets()
//the AO2 desk element
ui_vp_desk->move(0, 0);
- ui_vp_desk->resize(ui_viewport->width(), ui_viewport->height());
+ ui_vp_desk->combo_resize(ui_viewport->width(), ui_viewport->height());
//the size of the ui_vp_legacy_desk element relies on various factors and is set in set_scene()