diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -161,7 +161,8 @@ void run(){ img->fmt->close(img); continue; /* Allow for some events to be read, read is slow */ } - ximg = getimage(img, width, height); + if(!ximg) + ximg = getimage(img, width, height); drawimage(ximg, width, height); redraw = 0; } |