- fixed compilation of cursor scaling code. This reported 'std::vector' not defined, so now it just uses TArray, like the rest of ZDoom.

This commit is contained in:
Christoph Oelckers 2016-12-10 12:05:46 +01:00
parent 0e448a6450
commit 6c86a33f5d

View file

@ -1426,9 +1426,9 @@ static HCURSOR CreateAlphaCursor(FTexture *cursorpic)
} }
else else
{ {
std::vector<uint32_t> unscaled; TArray<uint32_t> unscaled;
unscaled.resize(32 * 32); unscaled.Resize(32 * 32);
FBitmap bmp((BYTE *)unscaled.data() + 31 * 32 * 4, -32 * 4, 32, 32); FBitmap bmp((BYTE *)&unscaled[0] + 31 * 32 * 4, -32 * 4, 32, 32);
cursorpic->CopyTrueColorPixels(&bmp, 0, 0); cursorpic->CopyTrueColorPixels(&bmp, 0, 0);
uint32_t *scaled = (uint32_t*)bits; uint32_t *scaled = (uint32_t*)bits;
for (int y = 0; y < 32 * scale; y++) for (int y = 0; y < 32 * scale; y++)