From 376b045c332b4738bee0c2ba42c30b1b2f55fb7e Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Fri, 10 Dec 2021 16:35:19 -0800 Subject: [PATCH] Use SDL_LowerBlitScaled() rather than SDL_BlitScaled() --- src/sdl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sdl.c b/src/sdl.c index 126183b..2245c72 100644 --- a/src/sdl.c +++ b/src/sdl.c @@ -11,6 +11,10 @@ #include "lspglob.h" // for IOPage #include "display.h" // for CURSORHEIGHT, DisplayRegion68k +/* if SDLRENDERING is defined, render to a texture rather than + * using the window surface + */ + #define SDLRENDERING 1 static SDL_Window *sdl_window = NULL; @@ -563,7 +567,7 @@ void sdl_update_display() { s.w = r.w * sdl_pixelscale; s.h = r.h * sdl_pixelscale; sdl_bitblt_to_buffer(r.x, r.y, r.w, r.h); - SDL_BlitScaled(sdl_buffersurface, &r, sdl_windowsurface, &s); + SDL_LowerBlitScaled(sdl_buffersurface, &r, sdl_windowsurface, &s); SDL_UpdateWindowSurfaceRects(sdl_window, &s, 1); } }