mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
parent
13181e8300
commit
3b18db52c8
@ -230,7 +230,7 @@ void ConvertColorBitMap(unsigned char * buffer, PBITMAPINFO pBitMapInfo, nsCStri
|
||||
iconBuffer.Append((char) blueValue);
|
||||
iconBuffer.Append((char) greenValue);
|
||||
iconBuffer.Append((char) redValue);
|
||||
pos += bytesPerPixel;
|
||||
pos += 3;
|
||||
if (pos == unalignedBytesPerRow && numBytesPaddingPerRow) // if we have reached the end of a current row, add padding to force dword alignment
|
||||
{
|
||||
pos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user