gtk: make inital empty games window bigger

This commit is contained in:
Eric House 2022-04-04 17:37:58 +02:00
parent 1c9fe6745c
commit 338106dc81

View file

@ -527,14 +527,17 @@ setWindowTitle( GtkAppGlobals* apg )
void
resizeFromSaved( GtkWidget* window, sqlite3* pDb, const gchar* key )
{
gint xx, yy, width, height;
gchar buf[64];
if ( gdb_fetch_safe( pDb, key, NULL, buf, sizeof(buf)) ) {
gint xx, yy, width, height;
sscanf( buf, COORDS_FORMAT, &xx, &yy, &width, &height );
} else {
xx = yy = 100;
width = height = 500;
}
gtk_window_resize( GTK_WINDOW(window), width, height );
gtk_window_move( GTK_WINDOW(window), xx, yy );
}
}
static void
formatCoords( gchar* buf, const GdkEventConfigure* lastSize )