diff options
author | jstebbins <[email protected]> | 2009-04-05 02:48:09 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-04-05 02:48:09 +0000 |
commit | d6173f9832f42d2786edafb45f4c75926b5da8e0 (patch) | |
tree | 7aae936def2a586e0d09277a0e8695ea1830199e /gtk/src | |
parent | 4caaa83206bd65e7282a1f233c725530b7ead93e (diff) |
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
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/hb-backend.c | 13 |
1 files changed, 9 insertions, 4 deletions
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; } } |