Skip to content

Commit f134c33

Browse files
committed
ui: mission_briefing correct draw with position in center
1 parent bb3cdbd commit f134c33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/window/mission_briefing.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,17 @@ static void window_briefing_draw_background() {
111111

112112
static void window_briefing_draw_foreground() {
113113
auto &ui = g_mission_briefing;
114+
ui.begin_widget(ui.pos);
114115
ui.draw();
116+
ui.end_widget();
115117
}
116118

117119
static void window_briefing_menu_handle_input(const mouse *m, const hotkeys *h) {
118120
auto &ui = g_mission_briefing;
121+
122+
ui.begin_widget(ui.pos);
119123
ui.handle_mouse(m);
124+
ui.end_widget();
120125
}
121126

122127
static void show(void) {

0 commit comments

Comments
 (0)