summaryrefslogtreecommitdiffstats
path: root/gtk/src/preview.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-07-16 00:29:34 +0000
committerjstebbins <[email protected]>2009-07-16 00:29:34 +0000
commit8a9644c257d821341ca6ebe94b31be553971a07d (patch)
treeca459610ad2401a929a3e4a1f37193f33369cc78 /gtk/src/preview.c
parent32f2eebc48d1ad68e516ed6d0a2e3c7024a8150d (diff)
LinGui: shuffle things around on the picture tab a bit
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2696 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r--gtk/src/preview.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c
index 7b975e8ce..8748fae38 100644
--- a/gtk/src/preview.c
+++ b/gtk/src/preview.c
@@ -714,9 +714,14 @@ ghb_set_preview_image(signal_user_data_t *ud)
g_free(text);
g_debug("preview %d x %d", preview_width, preview_height);
- target_height = MIN(ud->preview->button_height, 128);
+ target_height = MIN(ud->preview->button_height, 200);
height = target_height;
width = preview_width * height / preview_height;
+ if (width > 400)
+ {
+ width = 400;
+ height = preview_height * width / preview_width;
+ }
if ((height >= 16) && (width >= 16))
{