2 * PostScript driver object handling
4 * Copyright 1998 Huw D M Davies
9 #include "debugtools.h"
11 DEFAULT_DEBUG_CHANNEL(psdrv);
13 /***********************************************************************
14 * PSDRV_BITMAP_SelectObject
16 static HBITMAP PSDRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap )
23 /***********************************************************************
26 HGDIOBJ PSDRV_SelectObject( DC *dc, HGDIOBJ handle )
30 TRACE("hdc=%04x %04x\n", dc->hSelf, handle );
32 switch(GetObjectType( handle ))
35 ret = PSDRV_PEN_SelectObject( dc, handle );
38 ret = PSDRV_BRUSH_SelectObject( dc, handle );
41 ret = PSDRV_BITMAP_SelectObject( dc, handle );
44 ret = PSDRV_FONT_SelectObject( dc, handle );
47 ret = (HGDIOBJ)SelectClipRgn( dc->hSelf, handle );
49 case 0: /* invalid handle */
52 ERR("Unknown object type %ld\n", GetObjectType(handle) );