From 90f9b9a077bf59a596486fecf063d7c4828df432 Mon Sep 17 00:00:00 2001 From: John Stebbins <jstebbins.hb@gmail.com> Date: Tue, 20 Oct 2015 08:07:00 -0700 Subject: [PATCH] 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. --- gtk/src/hb-backend.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0