diff --git a/src/video.c b/src/video.c index 490a349..a515919 100644 --- a/src/video.c +++ b/src/video.c @@ -522,6 +522,8 @@ void video_wait_for_buffer() void video_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h) { + if (h <= 0) + return; video_wait_for_blit(); blit_data.busy = 1; blit_data.buffer_in_use = 1;