From 990b68c4d59735c025db2823e0cb145d99d3bd3e Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 1 Mar 2021 20:56:10 +0300
Subject: [PATCH] SDL_UpperBlit: remove Rect20to12 for srcrect,
srcrect is a const ptr, so no need converting it back to SDL-1.2 format
after SDL20_UpperBlit returns.
---
src/SDL12_compat.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index a905710..7bd1e62 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -3330,10 +3330,6 @@ SDL_UpperBlit(SDL12_Surface *src12, SDL12_Rect *srcrect12, SDL12_Surface *dst12,
RestoreDestAlpha(dst12, dstalpha);
- if (srcrect12) {
- Rect20to12(&srcrect20, srcrect12);
- }
-
if (dstrect12) {
Rect20to12(&dstrect20, dstrect12);
}