From 360d19b01c4386485c5a6d4ce268d44b59ee106a Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 24 Jul 2017 12:23:16 +0200 Subject: [PATCH] Fixed a partable C dithering option, fixing the red artific on shadows for some configurations --- Sources/Engine/Graphics/Graphics.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Engine/Graphics/Graphics.cpp b/Sources/Engine/Graphics/Graphics.cpp index 440c27f..6d501f4 100644 --- a/Sources/Engine/Graphics/Graphics.cpp +++ b/Sources/Engine/Graphics/Graphics.cpp @@ -882,7 +882,7 @@ nextRowO: #else union uConv { - ULONG val; + __int64 val; DWORD dwords[2]; UWORD words[4]; WORD iwords[4]; @@ -891,7 +891,8 @@ nextRowO: for (int i=0; i>= mmShifter; } dith.val &= mmMask; uConv* src = (uConv*)(pulSrc+i*pixWidth);