Skip to content

Commit a3a4482

Browse files
committed
dos: Only draw the cursor if it is enabled
1 parent b55cac0 commit a3a4482

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/video/svga/SDL_svga_framebuffer.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <sys/movedata.h>
2727
#include <sys/segments.h>
2828

29+
#include "SDL_events.h"
2930
#include "SDL_mouse.h"
3031
#include "SDL_svga_video.h"
3132
#include "SDL_svga_framebuffer.h"
@@ -165,7 +166,9 @@ SDL_SVGA_UpdateFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, i
165166
framebuffer_offset, surface_size);
166167

167168
/* Copy cursor pixels to hidden framebuffer. */
168-
CopyCursorPixels(window);
169+
if (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE) {
170+
CopyCursorPixels(window);
171+
}
169172

170173
/* Display fresh page to screen. */
171174
SVGA_SetDisplayStart(0, windata->framebuffer_page ? surface->h : 0);

0 commit comments

Comments
 (0)