Fixed pixmap leak with the 1x1 bitmap in memory DCs.

This commit is contained in:
Gerard Patel 2000-04-08 20:21:01 +00:00 committed by Alexandre Julliard
parent e1858881c4
commit 66e47407d0
1 changed files with 1 additions and 1 deletions

View File

@ -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;