From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/video/SDL_fillrect.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/source/src/video/SDL_fillrect.c b/source/src/video/SDL_fillrect.c
index ecc5fe5..3deb501 100644
--- a/source/src/video/SDL_fillrect.c
+++ b/source/src/video/SDL_fillrect.c
@@ -314,6 +314,11 @@
return SDL_SetError("SDL_FillRect(): Unsupported surface format");
}
+ /* Nothing to do */
+ if (dst->w == 0 || dst->h == 0) {
+ return 0;
+ }
+
/* Perform software fill */
if (!dst->pixels) {
return SDL_SetError("SDL_FillRect(): You must lock the surface");
--
Gitblit v1.9.3