2 * GDI brush objects - win16drv
4 * Copyright 1997 John Harvey
13 HBRUSH32
WIN16DRV_BRUSH_SelectObject( DC
* dc
, HBRUSH32 hbrush
,
16 WIN16DRV_PDEVICE
*physDev
= (WIN16DRV_PDEVICE
*)dc
->physDev
;
17 HBRUSH16 prevHandle
= dc
->w
.hBrush
;
20 dc
->w
.hBrush
= hbrush
;
21 lBrush16
.lbStyle
= brush
->logbrush
.lbStyle
;
22 lBrush16
.lbColor
= brush
->logbrush
.lbColor
;
23 lBrush16
.lbHatch
= brush
->logbrush
.lbHatch
;
26 if ( physDev
->BrushInfo
)
28 TRACE(win16drv
, "UnRealizing BrushInfo\n");
29 nSize
= PRTDRV_RealizeObject (physDev
->segptrPDEVICE
, -DRVOBJ_BRUSH
,
31 physDev
->BrushInfo
, 0);
35 nSize
= PRTDRV_RealizeObject (physDev
->segptrPDEVICE
, DRVOBJ_BRUSH
,
37 physDev
->BrushInfo
= SEGPTR_ALLOC( nSize
);
41 nSize
= PRTDRV_RealizeObject(physDev
->segptrPDEVICE
, DRVOBJ_BRUSH
,
44 win16drv_SegPtr_TextXForm
);