From e2cd276b001d6a0c4b74e28c2a5c83b9c1885477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 30 Jan 2017 07:23:52 +0100 Subject: [PATCH] x86_64 build fix --- libs/libinterface/BitmapUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/libinterface/BitmapUtils.cpp b/libs/libinterface/BitmapUtils.cpp index 2f19c77..64e9a83 100644 --- a/libs/libinterface/BitmapUtils.cpp +++ b/libs/libinterface/BitmapUtils.cpp @@ -121,12 +121,12 @@ RescaleBitmap(const BBitmap* src, float width, float height) void* srcData = src->Bits(); for (int32 y = 0; y <= height; y++) { - void* dstRow = (void*)((uint32)dstData + (uint32)(y * dstYOff)); - void* srcRow = (void*)((uint32)srcData + ((uint32)(y * dy) + void* dstRow = (void*)((uintptr_t)dstData + (uint32)(y * dstYOff)); + void* srcRow = (void*)((uintptr_t)srcData + ((uint32)(y * dy) * srcYOff)); for (int32 x = 0; x <= width; x++) - memcpy((void*)((uint32)dstRow + (x * bpp)), (void*)((uint32)srcRow + memcpy((void*)((uintptr_t)dstRow + (x * bpp)), (void*)((uintptr_t)srcRow + ((uint32)(x * dx) * bpp)), bpp); }