- 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
1 changed files with 3 additions and 3 deletions

View File

@ -1426,9 +1426,9 @@ static HCURSOR CreateAlphaCursor(FTexture *cursorpic)
}
else
{
std::vector<uint32_t> unscaled;
unscaled.resize(32 * 32);
FBitmap bmp((BYTE *)unscaled.data() + 31 * 32 * 4, -32 * 4, 32, 32);
TArray<uint32_t> 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++)