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