4 * Copyright 1993 Alexandre Julliard
13 #include "debugtools.h"
15 DEFAULT_DEBUG_CHANNEL(gdi)
18 extern HBITMAP WIN16DRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap,
20 extern HBRUSH WIN16DRV_BRUSH_SelectObject( DC * dc, HBRUSH hbrush,
22 extern HFONT WIN16DRV_FONT_SelectObject( DC * dc, HFONT hfont,
24 extern HPEN WIN16DRV_PEN_SelectObject( DC * dc, HPEN hpen, PENOBJ * pen );
27 /***********************************************************************
28 * WIN16DRV_SelectObject
30 HGDIOBJ WIN16DRV_SelectObject( DC *dc, HGDIOBJ handle )
32 GDIOBJHDR *ptr = GDI_GetObjPtr( handle, MAGIC_DONTCARE );
36 TRACE("hdc=%04x %04x\n", dc->hSelf, handle );
38 switch(GDIMAGIC(ptr->wMagic))
41 ret = WIN16DRV_PEN_SelectObject( dc, handle, (PENOBJ *)ptr );
44 ret = WIN16DRV_BRUSH_SelectObject( dc, handle, (BRUSHOBJ *)ptr );
47 FIXME("WIN16DRV_SelectObject for BITMAP not implemented\n");
51 ret = WIN16DRV_FONT_SelectObject( dc, handle, (FONTOBJ *)ptr );
54 ret = (HGDIOBJ16)SelectClipRgn16( dc->hSelf, handle );
57 GDI_ReleaseObj( handle );