Commit e29c3cd2 authored by Sven Neumann's avatar Sven Neumann

quick fix for large previews

parent 0527d023
......@@ -125,10 +125,10 @@ stretch_frame_image (GdkPixbuf *frame_image,
target_frame_width = frame_width - left_offset - right_offset;
target_frame_height = frame_height - top_offset - bottom_offset;
left_offset += MIN (target_width / 2, target_frame_width / 2);
right_offset += MIN (target_width / 2, target_frame_width / 2);
top_offset += MIN (target_height / 2, target_frame_height / 2);
bottom_offset += MIN (target_height / 2, target_frame_height / 2);
left_offset += MIN (target_width / 4, target_frame_width / 4);
right_offset += MIN (target_width / 4, target_frame_width / 4);
top_offset += MIN (target_height / 4, target_frame_height / 4);
bottom_offset += MIN (target_height / 4, target_frame_height / 4);
target_width = dest_width - left_offset - right_offset;
target_height = dest_height - top_offset - bottom_offset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment