PVOID pvSection;
ASSERT(!pvBits || (iType == STYPE_BITMAP));
- ASSERT(pvBits || !(fjBitmap & BMF_DONT_FREE));
- ASSERT(!pvBits || !(fjBitmap & BMF_SINGLEALLOC));
/* Verify format */
if ((iFormat < BMF_1BPP) || (iFormat > BMF_PNG))
#define ABORT_SURFACE 0x40000000
#define PDEV_SURFACE 0x80000000
-
-#define BMF_DONT_FREE 0x100
-#define BMF_RLE_HACK 0x200
-#define BMF_SINGLEALLOC 0x400
-#define BMF_POOLALLOC 0x800
+#define BMF_POOLALLOC 0x100
/* Internal interface */
1,
1,
BMF_32BPP,
- BMF_DONT_FREE,
+ 0,
0,
&ulRGBColor);
if (psurfDest)
}
/* The infamous RLE hack */
- if ((iFormat == BMF_4RLE) || (iFormat == BMF_8RLE))
+ if (pvCompressedBits)
{
SIZEL sizl;
LONG lDelta;
pvBits = psurf->SurfObj.pvBits;
DecompressBitmap(sizl, pvCompressedBits, pvBits, lDelta, iFormat);
- psurf->SurfObj.fjBitmap |= BMF_RLE_HACK;
}
/* Get the handle for the bitmap */
bmp->dwOffset = offset;
bmp->flags = API_BITMAP;
bmp->biClrImportant = bi->biClrImportant;
- bmp->SurfObj.fjBitmap &= ~BMF_DONT_FREE;
/* HACK */
if(hpal != (HPALETTE)0xFFFFFFFF)