diff --git a/src/unix/unix_sdl.c b/src/unix/unix_sdl.c index ae5b43a9b..ee1220409 100644 --- a/src/unix/unix_sdl.c +++ b/src/unix/unix_sdl.c @@ -138,7 +138,7 @@ sdl_blit(int x, int y, int w, int h) SDL_Rect r_src; int ret; - if (!sdl_enabled || (h <= 0) || (render_buffer == NULL) || (sdl_render == NULL) || (sdl_tex == NULL)) { + if (!sdl_enabled || (h <= 0) || (buffer32 == NULL) || (sdl_render == NULL) || (sdl_tex == NULL)) { video_blit_complete(); return; } diff --git a/src/video/vid_ega.c b/src/video/vid_ega.c index c8f2a43c1..61cf87ee0 100644 --- a/src/video/vid_ega.c +++ b/src/video/vid_ega.c @@ -675,10 +675,8 @@ ega_doblit(int wx, int wy, ega_t *ega) bottom <<= 1; } - if ((wx <= 0) || (wy <= 0)) { - video_blit_memtoscreen(x_start, y_start, 0, 0); + if ((wx <= 0) || (wy <= 0)) return; - } if (ega->vres) ega->y_add <<= 1; diff --git a/src/video/vid_svga.c b/src/video/vid_svga.c index 9615c10a0..b38353701 100644 --- a/src/video/vid_svga.c +++ b/src/video/vid_svga.c @@ -1361,10 +1361,8 @@ svga_doblit(int wx, int wy, svga_t *svga) bottom <<= 1; } - if ((wx <= 0) || (wy <= 0)) { - video_blit_memtoscreen(x_start, y_start, 0, 0); + if ((wx <= 0) || (wy <= 0)) return; - } if (svga->vertical_linedbl) svga->y_add <<= 1;