From 0ec9d74c398c092f1019ae10a4ead306a86fb9b6 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 28 Oct 2024 19:14:08 +0000 Subject: [PATCH] gtk2: allow 0.5 increments on gpu scale since the window size menu offers those as presets, and at least a 0.5 fraction on the scale doesn't seem to cause any problems in my testing. --- desmume/src/frontend/posix/gtk2/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/desmume/src/frontend/posix/gtk2/main.cpp b/desmume/src/frontend/posix/gtk2/main.cpp index d08e6a9f9..cdefe29b4 100644 --- a/desmume/src/frontend/posix/gtk2/main.cpp +++ b/desmume/src/frontend/posix/gtk2/main.cpp @@ -2566,9 +2566,7 @@ static void GraphicsSettingsDialog() { static_cast(GTK_EXPAND | GTK_FILL), 5, 0); tcol = 1; - wGPUScale = gtk_spin_button_new_with_range(GPU_SCALE_FACTOR_MIN, GPU_SCALE_FACTOR_MAX, 1.0); //GTK_SPIN_BUTTON(gtk_builder_get_object(builder, "gpuscale")); - //gtk_spin_button_set_range(wGPUScale, GPU_SCALE_FACTOR_MIN, GPU_SCALE_FACTOR_MAX); - //gtk_spin_button_set_increments(wGPUScale, 1.0, 1.0); + wGPUScale = gtk_spin_button_new_with_range(GPU_SCALE_FACTOR_MIN, GPU_SCALE_FACTOR_MAX, 0.5); gtk_spin_button_set_value(GTK_SPIN_BUTTON(wGPUScale), gpu_scale_factor); gtk_table_attach(GTK_TABLE(wTable), wGPUScale, tcol, tcol+1, trow, trow+1, static_cast(GTK_EXPAND | GTK_FILL),