Fixed pixmap leak with the 1x1 bitmap in memory DCs.
This commit is contained in:
parent
e1858881c4
commit
66e47407d0
|
@ -241,7 +241,7 @@ static BOOL X11DRV_CreateDC( DC *dc, LPCSTR driver, LPCSTR device,
|
||||||
{
|
{
|
||||||
BITMAPOBJ *bmp = (BITMAPOBJ *) GDI_GetObjPtr( dc->w.hBitmap,
|
BITMAPOBJ *bmp = (BITMAPOBJ *) GDI_GetObjPtr( dc->w.hBitmap,
|
||||||
BITMAP_MAGIC );
|
BITMAP_MAGIC );
|
||||||
X11DRV_CreateBitmap( dc->w.hBitmap );
|
if (!bmp->physBitmap) X11DRV_CreateBitmap( dc->w.hBitmap );
|
||||||
physDev->drawable = (Pixmap)bmp->physBitmap;
|
physDev->drawable = (Pixmap)bmp->physBitmap;
|
||||||
physDev->gc = TSXCreateGC(display, physDev->drawable, 0, NULL);
|
physDev->gc = TSXCreateGC(display, physDev->drawable, 0, NULL);
|
||||||
dc->w.bitsPerPixel = bmp->bitmap.bmBitsPixel;
|
dc->w.bitsPerPixel = bmp->bitmap.bmBitsPixel;
|
||||||
|
|
Loading…
Reference in New Issue