From 8c49b5f7a08014ae43e1f9ba78b6529f9b3a1432 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 6 Apr 2016 13:40:56 +0200 Subject: [PATCH] Unstubbed the Fog Portable C function --- Sources/Engine/Graphics/Fog.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Sources/Engine/Graphics/Fog.cpp b/Sources/Engine/Graphics/Fog.cpp index 84b82d1..503f743 100644 --- a/Sources/Engine/Graphics/Fog.cpp +++ b/Sources/Engine/Graphics/Fog.cpp @@ -25,7 +25,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include #include - +#ifdef USE_PORTABLE_C +# include +#endif // asm shortcuts #define O offset @@ -69,7 +71,14 @@ ULONG PrepareTexture( UBYTE *pubTexture, PIX pixSizeI, PIX pixSizeJ) const PIX pixTextureSize = pixSizeI*pixSizeJ; #if (defined USE_PORTABLE_C) - STUBBED("PrepareTexture"); + UBYTE* src = pubTexture; + DWORD* dst = (DWORD*)(pubTexture+pixTextureSize); + for (int i=0; i