4 * Copyright 1993 Alexandre Julliard
17 extern HBITMAP32 X11DRV_BITMAP_SelectObject( DC * dc, HBITMAP32 hbitmap,
19 extern HBRUSH32 X11DRV_BRUSH_SelectObject( DC * dc, HBRUSH32 hbrush,
21 extern HFONT32 X11DRV_FONT_SelectObject( DC * dc, HFONT32 hfont,
23 extern HPEN32 X11DRV_PEN_SelectObject( DC * dc, HPEN32 hpen, PENOBJ * pen );
26 /***********************************************************************
29 HGDIOBJ32 X11DRV_SelectObject( DC *dc, HGDIOBJ32 handle )
31 GDIOBJHDR *ptr = GDI_GetObjPtr( handle, MAGIC_DONTCARE );
34 dprintf_gdi(stddeb, "SelectObject: hdc=%04x %04x\n", dc->hSelf, handle );
39 return X11DRV_PEN_SelectObject( dc, handle, (PENOBJ *)ptr );
41 return X11DRV_BRUSH_SelectObject( dc, handle, (BRUSHOBJ *)ptr );
43 return X11DRV_BITMAP_SelectObject( dc, handle, (BITMAPOBJ *)ptr );
45 return X11DRV_FONT_SelectObject( dc, handle, (FONTOBJ *)ptr );
47 return (HGDIOBJ16)SelectClipRgn16( dc->hSelf, handle );