mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
libui/gtk: center windows
This commit is contained in:
@ -437,6 +437,8 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int maximized, i
|
||||
|
||||
if (maximized)
|
||||
gtk_window_maximize(w->window);
|
||||
else
|
||||
gtk_window_set_position(w->window, GTK_WIN_POS_CENTER);
|
||||
|
||||
return w;
|
||||
}
|
||||
|
Reference in New Issue
Block a user