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.
This commit is contained in:
parent
76a6935dc8
commit
0ec9d74c39
|
@ -2566,9 +2566,7 @@ static void GraphicsSettingsDialog() {
|
||||||
static_cast<GtkAttachOptions>(GTK_EXPAND | GTK_FILL), 5, 0);
|
static_cast<GtkAttachOptions>(GTK_EXPAND | GTK_FILL), 5, 0);
|
||||||
|
|
||||||
tcol = 1;
|
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"));
|
wGPUScale = gtk_spin_button_new_with_range(GPU_SCALE_FACTOR_MIN, GPU_SCALE_FACTOR_MAX, 0.5);
|
||||||
//gtk_spin_button_set_range(wGPUScale, GPU_SCALE_FACTOR_MIN, GPU_SCALE_FACTOR_MAX);
|
|
||||||
//gtk_spin_button_set_increments(wGPUScale, 1.0, 1.0);
|
|
||||||
gtk_spin_button_set_value(GTK_SPIN_BUTTON(wGPUScale), gpu_scale_factor);
|
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,
|
gtk_table_attach(GTK_TABLE(wTable), wGPUScale, tcol, tcol+1, trow, trow+1,
|
||||||
static_cast<GtkAttachOptions>(GTK_EXPAND | GTK_FILL),
|
static_cast<GtkAttachOptions>(GTK_EXPAND | GTK_FILL),
|
||||||
|
|
Loading…
Reference in New Issue