Zandr Martin 8 years ago
parent 51c367dfdc
commit f84217d07c
No known key found for this signature in database
GPG Key ID: AA2BB8EF77F7BBDC

@ -236,7 +236,7 @@ void render_image(struct window *window, cairo_surface_t *image, enum scaling_mo
case SCALING_MODE_FILL: case SCALING_MODE_FILL:
{ {
double window_ratio = (double) wwidth / wheight; double window_ratio = (double) wwidth / wheight;
double bg_ratio = wheight; double bg_ratio = width / height;
if (window_ratio > bg_ratio) { if (window_ratio > bg_ratio) {
double scale = (double) wwidth / width; double scale = (double) wwidth / width;

Loading…
Cancel
Save