mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 15:19:53 -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)
|
if (maximized)
|
||||||
gtk_window_maximize(w->window);
|
gtk_window_maximize(w->window);
|
||||||
|
else
|
||||||
|
gtk_window_set_position(w->window, GTK_WIN_POS_CENTER);
|
||||||
|
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user