Fixed refresh of image area, it was not completely refreshed
[colorize.git] / 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];