summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-10-20 08:07:00 -0700
committerJohn Stebbins <[email protected]>2015-10-26 08:32:38 -0700
commit90f9b9a077bf59a596486fecf063d7c4828df432 (patch)
tree6b3253645be8ef9daf0992a4ba7978d0adf3714b
parentdc7c7ac97c0fef7c3de0f8364c0512d754a945fa (diff)
LinGui: custom-ana reduce PAR when it's modified indirectly
If PAR is indirectly changed through the user changing storage or display width and height, reduce PAR to minimum num and den.
-rw-r--r--gtk/src/hb-backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index beb9797e5..0c22c430d 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -3746,6 +3746,8 @@ ghb_set_scale_settings(GhbValue *settings, gint mode)
uiGeo.geometry.par.num =
ghb_dict_get_int(settings, "PictureDisplayWidth");
uiGeo.geometry.par.den = width;
+ hb_reduce(&uiGeo.geometry.par.num, &uiGeo.geometry.par.den,
+ uiGeo.geometry.par.num, uiGeo.geometry.par.den);
}
}
else