aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ecefda4..e79af03 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}