Fixed refresh of image area, it was not completely refreshed
authorAndreas Eversberg <jolly@eversberg.eu>
Sun, 9 Nov 2014 07:12:34 +0000 (08:12 +0100)
committerAndreas Eversberg <jolly@eversberg.eu>
Sun, 15 Mar 2015 14:34:00 +0000 (15:34 +0100)
This happend, when the image area was higher than wide (portrait).

gui/image.c

index 06e40c5..a8f18ce 100644 (file)
@@ -185,7 +185,7 @@ void draw_image(int x, int y, int w, int h)
        if (w < 0)
                w = window_width;
        if (h < 0)
-               h = window_width;
+               h = window_height;
 
        guchar *data;
        unsigned char compose[w*3];