https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e128cbc6807e60249660d78f3b68a0f92ced6c96

commit e128cbc6807e60249660d78f3b68a0f92ced6c96
Author:     Doug Lyons <dougly...@douglyons.com>
AuthorDate: Thu Sep 19 14:54:49 2024 -0500
Commit:     GitHub <nore...@github.com>
CommitDate: Thu Sep 19 14:54:49 2024 -0500

    [GDIPLUS] Fix for gdiplus/graphics.c regression with GCC 8.4.0 from 
4.7.2(#7348)
    
    Affects ribbon bar when running Super Finder XT 1.6.3.2 from rapps.
    
    Change four REAL variables to DOUBLE to improve precision.
    
    CORE-19456
---
 dll/win32/gdiplus/graphics.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dll/win32/gdiplus/graphics.c b/dll/win32/gdiplus/graphics.c
index 199b20442b2..dae43623da6 100644
--- a/dll/win32/gdiplus/graphics.c
+++ b/dll/win32/gdiplus/graphics.c
@@ -3264,7 +3264,11 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics 
*graphics, GpImage *image
 
             if (do_resampling)
             {
+#ifdef __REACTOS__  // CORE-19456
+                DOUBLE delta_xx, delta_xy, delta_yx, delta_yy;
+#else
                 REAL delta_xx, delta_xy, delta_yx, delta_yy;
+#endif
 
                 /* Transform the bits as needed to the destination. */
                 dst_data = dst_dyn_data = heap_alloc_zero(sizeof(ARGB) * 
(dst_area.right - dst_area.left) * (dst_area.bottom - dst_area.top));

Reply via email to