4 * Copyright 1993 Alexandre Julliard
16 extern HBITMAP32 X11DRV_BITMAP_SelectObject( DC * dc, HBITMAP32 hbitmap,
18 extern HBRUSH32 X11DRV_BRUSH_SelectObject( DC * dc, HBRUSH32 hbrush,
20 extern HFONT32 X11DRV_FONT_SelectObject( DC * dc, HFONT32 hfont,
22 extern HPEN32 X11DRV_PEN_SelectObject( DC * dc, HPEN32 hpen, PENOBJ * pen );
24 extern BOOL32 X11DRV_BITMAP_DeleteObject( HBITMAP32 hbitmap, BITMAPOBJ *bmp );
26 /***********************************************************************
29 HGDIOBJ32 X11DRV_SelectObject( DC *dc, HGDIOBJ32 handle )
31 GDIOBJHDR *ptr = GDI_GetObjPtr( handle, MAGIC_DONTCARE );
35 TRACE(gdi, "hdc=%04x %04x\n", dc->hSelf, handle );
40 ret = X11DRV_PEN_SelectObject( dc, handle, (PENOBJ *)ptr );
43 ret = X11DRV_BRUSH_SelectObject( dc, handle, (BRUSHOBJ *)ptr );
46 ret = X11DRV_BITMAP_SelectObject( dc, handle, (BITMAPOBJ *)ptr );
49 ret = X11DRV_FONT_SelectObject( dc, handle, (FONTOBJ *)ptr );
52 ret = (HGDIOBJ16)SelectClipRgn16( dc->hSelf, handle );
55 GDI_HEAP_UNLOCK( handle );
60 /***********************************************************************
63 BOOL32 X11DRV_DeleteObject( HGDIOBJ32 handle )
65 GDIOBJHDR *ptr = GDI_GetObjPtr( handle, MAGIC_DONTCARE );
68 if (!ptr) return FALSE;
72 ret = X11DRV_BITMAP_DeleteObject( handle, (BITMAPOBJ *)ptr );
76 ERR(gdi, "Shouldn't be here!\n");
80 GDI_HEAP_UNLOCK( handle );