4 * Copyright 1997 John Harvey
12 /***********************************************************************
15 HPEN WIN16DRV_PEN_SelectObject( DC * dc, HPEN hpen, PENOBJ * pen )
17 WIN16DRV_PDEVICE *physDev = (WIN16DRV_PDEVICE *)dc->physDev;
18 HPEN prevHandle = dc->w.hPen;
22 TRACE(win16drv, "In WIN16DRV_PEN_SelectObject\n");
23 lPen16.lopnStyle = pen->logpen.lopnStyle;
24 lPen16.lopnWidth.x = pen->logpen.lopnWidth.x;
25 lPen16.lopnWidth.y = pen->logpen.lopnWidth.y;
26 lPen16.lopnColor = pen->logpen.lopnColor;
28 if ( physDev->PenInfo )
30 TRACE(win16drv, "UnRealizing PenInfo\n");
31 nSize = PRTDRV_RealizeObject (physDev->segptrPDEVICE, -DRVOBJ_PEN,
37 nSize = PRTDRV_RealizeObject (physDev->segptrPDEVICE, DRVOBJ_PEN,
39 physDev->PenInfo = SEGPTR_ALLOC( nSize );
42 nSize = PRTDRV_RealizeObject(physDev->segptrPDEVICE, DRVOBJ_PEN,