Changeset 21964 for trunk/src/user32/winicon.cpp
- Timestamp:
- Feb 7, 2012, 9:10:49 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winicon.cpp
r21951 r21964 163 163 colortablesize = 0; 164 164 165 // CreateDIBits expectes DWORD-aligned scan lines165 // GetDIBits expectes DWORD-aligned scan lines 166 166 bmpXor.bmWidthBytes = (bmpXor.bmWidthBytes + 3) / 4 * 4; 167 bmpAnd.bmWidthBytes = (bmpAnd.bmWidthBytes + 3) / 4 * 4;168 167 169 168 if(bmpXor.bmBitsPixel <= 8) { … … 225 224 //recalculate the mask bitmap size 226 225 GetObjectA( hbmMask, sizeof(bmpAnd), &bmpAnd ); 227 sizeAnd = bmpAnd.bmHeight * (bmpAnd.bmWidthBytes + 3) / 4 * 4;226 sizeAnd = bmpAnd.bmHeight * bmpAnd.bmWidthBytes; 228 227 229 228 //query the 1bpp bitmap data … … 1164 1163 } 1165 1164 1166 // CreateDIBits expectes DWORD-aligned scan lines1165 // GetDIBits expectes DWORD-aligned scan lines 1167 1166 bmpXor.bmWidthBytes = (bmpXor.bmWidthBytes + 3) / 4 * 4; 1168 bmpAnd.bmWidthBytes = (bmpAnd.bmWidthBytes + 3) / 4 * 4;1169 1167 1170 1168 if(bmpXor.bmBitsPixel <= 8) {
Note:
See TracChangeset
for help on using the changeset viewer.