From 6d059e723447c485879e1af832cd744a9f9cc1aa Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Fri, 17 Sep 2010 15:35:13 +0000 Subject: [PATCH] Fix issue 338: UI scale should stay the same regardless of pixel scale git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1621 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/graph.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graph.c b/src/graph.c index 59bc3138..849dd2c8 100644 --- a/src/graph.c +++ b/src/graph.c @@ -522,6 +522,8 @@ try_again: Menu_factor_Y=1; break; default: // Stay below some reasonable size + if (factor>Max(Pixel_width,Pixel_height)) + factor/=Max(Pixel_width,Pixel_height); Menu_factor_X=Min(factor,abs(Config.Ratio)); Menu_factor_Y=Min(factor,abs(Config.Ratio)); }