From 6c86a33f5da70b62e0b9ae9191bcdab097478369 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 10 Dec 2016 12:05:46 +0100 Subject: [PATCH] - fixed compilation of cursor scaling code. This reported 'std::vector' not defined, so now it just uses TArray, like the rest of ZDoom. --- src/win32/i_system.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win32/i_system.cpp b/src/win32/i_system.cpp index 93960653d..9de5a2d47 100644 --- a/src/win32/i_system.cpp +++ b/src/win32/i_system.cpp @@ -1426,9 +1426,9 @@ static HCURSOR CreateAlphaCursor(FTexture *cursorpic) } else { - std::vector unscaled; - unscaled.resize(32 * 32); - FBitmap bmp((BYTE *)unscaled.data() + 31 * 32 * 4, -32 * 4, 32, 32); + TArray unscaled; + unscaled.Resize(32 * 32); + FBitmap bmp((BYTE *)&unscaled[0] + 31 * 32 * 4, -32 * 4, 32, 32); cursorpic->CopyTrueColorPixels(&bmp, 0, 0); uint32_t *scaled = (uint32_t*)bits; for (int y = 0; y < 32 * scale; y++)