SDL-1.2: Call driver's UpdateRects also for hardware surfaces

From 064e24a2b2d5d3f699a9f847b088db65d7a4fb5f Mon Sep 17 00:00:00 2001
From: Miro Kropacek <[EMAIL REDACTED]>
Date: Sat, 29 Jun 2024 22:27:09 +0200
Subject: [PATCH] Call driver's UpdateRects also for hardware surfaces

This helps at least the 'xbios' driver which pretends to offer a
hardware surface but in reality it does some post processing on its own
afterwards.

Fixes #886.
---
 src/video/SDL_cursor.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/video/SDL_cursor.c b/src/video/SDL_cursor.c
index 5d747d3c5..bc7ef5d65 100644
--- a/src/video/SDL_cursor.c
+++ b/src/video/SDL_cursor.c
@@ -655,8 +655,7 @@ void SDL_DrawCursor(SDL_Surface *screen)
 	if ( SDL_MUSTLOCK(screen) ) {
 		SDL_UnlockSurface(screen);
 	}
-	if ( (screen == SDL_VideoSurface) &&
-	     ((screen->flags & SDL_HWSURFACE) != SDL_HWSURFACE) ) {
+	if ( screen == SDL_VideoSurface ) {
 		SDL_VideoDevice *video = current_video;
 		SDL_VideoDevice *this  = current_video;
 		SDL_Rect area;
@@ -729,8 +728,7 @@ void SDL_EraseCursor(SDL_Surface *screen)
 	if ( SDL_MUSTLOCK(screen) ) {
 		SDL_UnlockSurface(screen);
 	}
-	if ( (screen == SDL_VideoSurface) &&
-	     ((screen->flags & SDL_HWSURFACE) != SDL_HWSURFACE) ) {
+	if ( screen == SDL_VideoSurface ) {
 		SDL_VideoDevice *video = current_video;
 		SDL_VideoDevice *this  = current_video;
 		SDL_Rect area;