From 056a4a09607e3adcfd43225321ce73b5b4a74c1e Mon Sep 17 00:00:00 2001
From: Peter Seiderer <[EMAIL REDACTED]>
Date: Wed, 27 Nov 2024 11:48:50 +0100
Subject: [PATCH] DirectFB: fix DirectFB_SetTextureScaleMode() declaration
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes:
src/video/directfb/SDL_DirectFB_render.c: In function ‘DirectFB_CreateRenderer’:
src/video/directfb/SDL_DirectFB_render.c:1153:35: error: assignment to ‘void (*)(SDL_Renderer *, SDL_Texture *, SDL_ScaleMode)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
1153 | renderer->SetTextureScaleMode = DirectFB_SetTextureScaleMode;
| ^
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
Notes:
- declaration was just recently changed by commit 'Fix warning for Android
NDK compiler: "function declaration without a prototype is deprecated in
all versions of C [-Wstrict-prototypes]"', see
https://github.com/libsdl-org/SDL/commit/ccade505879333267c8d6d38cb9c0535596f4648
(cherry picked from commit b64540dd6691f044c7b56ca91a3894577703eea7)
---
src/video/directfb/SDL_DirectFB_render.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/directfb/SDL_DirectFB_render.c b/src/video/directfb/SDL_DirectFB_render.c
index 7fe4b81af7444..f2405a0a0f116 100644
--- a/src/video/directfb/SDL_DirectFB_render.c
+++ b/src/video/directfb/SDL_DirectFB_render.c
@@ -561,7 +561,7 @@ static void DirectFB_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * textur
}
}
-static void DirectFB_SetTextureScaleMode(void)
+static void DirectFB_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode)
{
}