From d6173f9832f42d2786edafb45f4c75926b5da8e0 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 5 Apr 2009 02:48:09 +0000 Subject: LinGui: if fullscreen preview, don't reduce HD video to 80% of screen. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2300 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/hb-backend.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gtk/src') diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 8a4f04640..9a2982276 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -3920,21 +3920,26 @@ ghb_get_preview_image( GdkScreen *ss; gint s_w, s_h; gint orig_w, orig_h; + gint factor = 80; + if (ghb_settings_get_boolean(settings, "preview_fullscreen")) + { + factor = 100; + } ss = gdk_screen_get_default(); s_w = gdk_screen_get_width(ss); s_h = gdk_screen_get_height(ss); orig_w = dstWidth; orig_h = dstHeight; - if (dstWidth > s_w * 80 / 100) + if (dstWidth > s_w * factor / 100) { - dstWidth = s_w * 80 / 100; + dstWidth = s_w * factor / 100; dstHeight = dstHeight * dstWidth / orig_w; } - if (dstHeight > s_h * 80 / 100) + if (dstHeight > s_h * factor / 100) { - dstHeight = s_h * 80 / 100; + dstHeight = s_h * factor / 100; dstWidth = dstWidth * dstHeight / orig_h; } } -- cgit v1.2.3