Index: core/src/fxge/win32/fx_win32_dib.cpp |
diff --git a/core/src/fxge/win32/fx_win32_dib.cpp b/core/src/fxge/win32/fx_win32_dib.cpp |
index 0c6a7e1068865d45edbcb9f31f8429ab2baba2fc..7706ee289e5f50f5a0176a118e169efe8344950d 100644 |
--- a/core/src/fxge/win32/fx_win32_dib.cpp |
+++ b/core/src/fxge/win32/fx_win32_dib.cpp |
@@ -71,7 +71,7 @@ CFX_DIBitmap* _FX_WindowsDIB_LoadFromBuf(BITMAPINFO* pbmi, LPVOID pData, FX_BOOL |
} |
FXSYS_memcpy32(pBitmap->GetBuffer(), pData, pitch * height); |
if (bBottomUp) { |
- FX_LPBYTE temp_buf = FX_Alloc(FX_BYTE, pitch); |
+ FX_LPBYTE temp_buf = FX_Alloc(uint8_t, pitch); |
int top = 0, bottom = height - 1; |
while (top < bottom) { |
FXSYS_memcpy32(temp_buf, pBitmap->GetBuffer() + top * pitch, pitch); |
@@ -210,7 +210,7 @@ CFX_DIBitmap* CFX_WindowsDIB::LoadFromDDB(HDC hDC, HBITMAP hBitmap, FX_DWORD* pP |
if (bmih.biBitCount == 8) { |
size += sizeof (FX_DWORD) * 254; |
} |
- BITMAPINFO* pbmih = (BITMAPINFO*)FX_Alloc(FX_BYTE, size); |
+ BITMAPINFO* pbmih = (BITMAPINFO*)FX_Alloc(uint8_t, size); |
pbmih->bmiHeader.biSize = sizeof(BITMAPINFOHEADER); |
pbmih->bmiHeader.biBitCount = bmih.biBitCount; |
pbmih->bmiHeader.biCompression = BI_RGB; |
@@ -246,7 +246,7 @@ CFX_DIBitmap* CFX_WindowsDIB::LoadFromDDB(HDC hDC, HBITMAP hBitmap, FX_DWORD* pP |
if (ret != 0 && bmih.biBitCount == 32) { |
int pitch = pDIBitmap->GetPitch(); |
for (int row = 0; row < height; row ++) { |
- FX_BYTE* dest_scan = (FX_BYTE*)(pDIBitmap->GetBuffer() + row * pitch); |
+ uint8_t* dest_scan = (uint8_t*)(pDIBitmap->GetBuffer() + row * pitch); |
for (int col = 0; col < width; col++) { |
dest_scan[3] = 255; |
dest_scan += 4; |