diff options
author | John Stebbins <[email protected]> | 2016-06-20 07:40:24 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-06-20 07:40:24 -0700 |
commit | 31be008cc59b0ea652e7144f6a7b23bb61f19996 (patch) | |
tree | 29828396302d925dd446bb8e2af8fe7a8f7a5b02 /gtk | |
parent | 7b2284d1bfac621bffef111ae869bb9c8bc191c9 (diff) |
LinGui: fix initial preview scaling size
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/preview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c index c41ebdf65..b10aaf09b 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -993,12 +993,12 @@ ghb_set_preview_image(signal_user_data_t *ud) void ghb_rescale_preview_image(signal_user_data_t *ud) { + init_preview_image(ud); if (ud->preview->width <= 0 || ud->preview->height <= 0) { return; } double scale = (double)ud->preview->render_width / ud->preview->width; - init_preview_image(ud); preview_set_render_size(ud, ud->preview->width * scale, ud->preview->height * scale); @@ -1016,11 +1016,11 @@ ghb_rescale_preview_image(signal_user_data_t *ud) void ghb_reset_preview_image(signal_user_data_t *ud) { + init_preview_image(ud); if (ud->preview->width <= 0 || ud->preview->height <= 0) { return; } - init_preview_image(ud); preview_set_render_size(ud, ud->preview->width, ud->preview->height); // Scale and display the mini-preview |