2 * PostScript driver object handling
4 * Copyright 1998 Huw D M Davies
13 #include "debugtools.h"
15 DEFAULT_DEBUG_CHANNEL(psdrv
)
17 /***********************************************************************
18 * PSDRV_BITMAP_SelectObject
20 static HBITMAP16
PSDRV_BITMAP_SelectObject( DC
* dc
, HBITMAP16 hbitmap
,
28 /***********************************************************************
31 HGDIOBJ
PSDRV_SelectObject( DC
*dc
, HGDIOBJ handle
)
33 GDIOBJHDR
* ptr
= GDI_GetObjPtr( handle
, MAGIC_DONTCARE
);
37 TRACE("hdc=%04x %04x\n", dc
->hSelf
, handle
);
42 ret
= PSDRV_PEN_SelectObject( dc
, handle
, (PENOBJ
*)ptr
);
45 ret
= PSDRV_BRUSH_SelectObject( dc
, handle
, (BRUSHOBJ
*)ptr
);
48 ret
= PSDRV_BITMAP_SelectObject( dc
, handle
, (BITMAPOBJ
*)ptr
);
51 ret
= PSDRV_FONT_SelectObject( dc
, handle
, (FONTOBJ
*)ptr
);
54 ret
= (HGDIOBJ16
)SelectClipRgn16( dc
->hSelf
, handle
);
57 ERR("Unknown object magic %04x\n", ptr
->wMagic
);
60 GDI_HEAP_UNLOCK( handle
);