Correct the wPlanes field in the ico format

This commit is contained in:
Henrik Rydgård 2024-05-13 01:48:15 +02:00
parent 4d0f3183f2
commit bb7972c437

View File

@ -318,7 +318,7 @@ bool CreateICOFromPNGData(const uint8_t *imageData, size_t imageDataSize, const
entry.bHeight = pngHeader.Height();
entry.bColorCount = 0;
entry.dwBytesInRes = (DWORD)imageDataSize;
entry.wPlanes = 32;
entry.wPlanes = 1;
entry.wBitCount = 32;
entry.dwImageOffset = sizeof(hdr) + sizeof(entry);