- Timestamp:
- Feb 23, 2001, 11:37:42 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/blit.cpp
r4968 r5252 1 /* $Id: blit.cpp,v 1.2 3 2001-01-18 21:09:34sandervl Exp $ */1 /* $Id: blit.cpp,v 1.24 2001-02-23 10:37:42 sandervl Exp $ */ 2 2 3 3 /* … … 128 128 if (!cx || !cy) goto invalid_parameter; 129 129 130 // EB: ->>> Crazy. Nobody seen this Open32 bug ?131 // Dont't like dirty pointers, but Open32 needs a bit help.132 // Only tested with winmine.133 palsize = QueryPaletteSize((BITMAPINFOHEADER*)&info->bmiHeader);134 imgsize = CalcBitmapSize(info->bmiHeader.biBitCount,135 info->bmiHeader.biWidth, info->bmiHeader.biHeight);136 ptr = ((char *)info) + palsize + sizeof(BITMAPINFOHEADER);137 if(bits >= ptr && bits < ptr + imgsize)138 {139 bits = (char *)bits - imgsize +140 CalcBitmapSize(info->bmiHeader.biBitCount,141 info->bmiHeader.biWidth, lines);142 }143 // EB: <<<-144 145 130 //SvL: RP7's bitmap size is not correct; fix it here or else 146 131 // the blit is messed up in Open32
Note:
See TracChangeset
for help on using the changeset viewer.