Unstubbed the Fog Portable C function

This commit is contained in:
ptitSeb 2016-04-06 13:40:56 +02:00
parent 2406f62c4b
commit 8c49b5f7a0

View File

@ -25,7 +25,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <Engine/Graphics/Fog_internal.h> #include <Engine/Graphics/Fog_internal.h>
#include <Engine/Graphics/GfxProfile.h> #include <Engine/Graphics/GfxProfile.h>
#include <Engine/Graphics/ImageInfo.h> #include <Engine/Graphics/ImageInfo.h>
#ifdef USE_PORTABLE_C
# include <byteswap.h>
#endif
// asm shortcuts // asm shortcuts
#define O offset #define O offset
@ -69,7 +71,14 @@ ULONG PrepareTexture( UBYTE *pubTexture, PIX pixSizeI, PIX pixSizeJ)
const PIX pixTextureSize = pixSizeI*pixSizeJ; const PIX pixTextureSize = pixSizeI*pixSizeJ;
#if (defined USE_PORTABLE_C) #if (defined USE_PORTABLE_C)
STUBBED("PrepareTexture"); UBYTE* src = pubTexture;
DWORD* dst = (DWORD*)(pubTexture+pixTextureSize);
for (int i=0; i<pixTextureSize; i++) {
DWORD tmp = *src | 0xFFFFFF00;
*dst = bswap_32(tmp);
src++;
dst++;
}
#elif (defined __MSVC_INLINE__) #elif (defined __MSVC_INLINE__)
__asm { __asm {