From 77765c3fa54d4d03401de9cd1e63b3656204198a Mon Sep 17 00:00:00 2001 From: Echo J Date: Thu, 7 Nov 2024 00:49:10 +0200 Subject: [PATCH] SilentPatch: Simplify RwIm2DRenderLine function pointer declaration MinGW GCC doesn't seem to unwind the layers of the macro define properly (which causes it to not find the declaration type) --- SilentPatch/Common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SilentPatch/Common.cpp b/SilentPatch/Common.cpp index e64f88b..0851950 100644 --- a/SilentPatch/Common.cpp +++ b/SilentPatch/Common.cpp @@ -34,7 +34,7 @@ namespace HandlingNameLoadFix // ============= Corona lines rendering fix ============= namespace CoronaLinesFix { - static decltype(RwIm2DRenderLine)* orgRwIm2DRenderLine; + static RwIm2DRenderLineFunction orgRwIm2DRenderLine; static RwBool RenderLine_SetRecipZ( RwIm2DVertex *vertices, RwInt32 numVertices, RwInt32 vert1, RwInt32 vert2 ) { const RwReal nearScreenZ = RwIm2DGetNearScreenZ(); @@ -379,4 +379,4 @@ namespace Common { TXN_CATCH(); } } -} \ No newline at end of file +}