2 * GDI brush objects - win16drv
4 * Copyright 1997 John Harvey
10 #include "debugtools.h"
12 DEFAULT_DEBUG_CHANNEL(win16drv);
14 HBRUSH WIN16DRV_BRUSH_SelectObject( DC * dc, HBRUSH hbrush )
16 WIN16DRV_PDEVICE *physDev = (WIN16DRV_PDEVICE *)dc->physDev;
17 HBRUSH16 prevHandle = dc->hBrush;
21 if (!GetObject16( hbrush, sizeof(lBrush16), &lBrush16 )) return 0;
24 if ( physDev->BrushInfo )
26 TRACE("UnRealizing BrushInfo\n");
27 nSize = PRTDRV_RealizeObject (physDev->segptrPDEVICE, -DRVOBJ_BRUSH,
29 physDev->BrushInfo, 0);
33 nSize = PRTDRV_RealizeObject (physDev->segptrPDEVICE, DRVOBJ_BRUSH,
35 physDev->BrushInfo = SEGPTR_ALLOC( nSize );
39 nSize = PRTDRV_RealizeObject(physDev->segptrPDEVICE, DRVOBJ_BRUSH,
42 win16drv_SegPtr_TextXForm);