4 * Copyright 1997 John Harvey
10 #include "debugtools.h"
12 DEFAULT_DEBUG_CHANNEL(win16drv
)
14 /***********************************************************************
17 HPEN
WIN16DRV_PEN_SelectObject( DC
* dc
, HPEN hpen
, PENOBJ
* pen
)
19 WIN16DRV_PDEVICE
*physDev
= (WIN16DRV_PDEVICE
*)dc
->physDev
;
20 HPEN prevHandle
= dc
->w
.hPen
;
24 TRACE("In WIN16DRV_PEN_SelectObject\n");
25 lPen16
.lopnStyle
= pen
->logpen
.lopnStyle
;
26 lPen16
.lopnWidth
.x
= pen
->logpen
.lopnWidth
.x
;
27 lPen16
.lopnWidth
.y
= pen
->logpen
.lopnWidth
.y
;
28 lPen16
.lopnColor
= pen
->logpen
.lopnColor
;
30 if ( physDev
->PenInfo
)
32 TRACE("UnRealizing PenInfo\n");
33 nSize
= PRTDRV_RealizeObject (physDev
->segptrPDEVICE
, -DRVOBJ_PEN
,
39 nSize
= PRTDRV_RealizeObject (physDev
->segptrPDEVICE
, DRVOBJ_PEN
,
41 physDev
->PenInfo
= SEGPTR_ALLOC( nSize
);
44 nSize
= PRTDRV_RealizeObject(physDev
->segptrPDEVICE
, DRVOBJ_PEN
,