| * GDI brush objects - win16drv |
| * Copyright 1997 John Harvey |
| DEFAULT_DEBUG_CHANNEL(win16drv); |
| HBRUSH WIN16DRV_BRUSH_SelectObject( DC * dc, HBRUSH hbrush, |
| WIN16DRV_PDEVICE *physDev = (WIN16DRV_PDEVICE *)dc->physDev; |
| HBRUSH16 prevHandle = dc->hBrush; |
| lBrush16.lbStyle = brush->logbrush.lbStyle; |
| lBrush16.lbColor = brush->logbrush.lbColor; |
| lBrush16.lbHatch = brush->logbrush.lbHatch; |
| if ( physDev->BrushInfo ) |
| TRACE("UnRealizing BrushInfo\n"); |
| nSize = PRTDRV_RealizeObject (physDev->segptrPDEVICE, -DRVOBJ_BRUSH, |
| nSize = PRTDRV_RealizeObject (physDev->segptrPDEVICE, DRVOBJ_BRUSH, |
| physDev->BrushInfo = SEGPTR_ALLOC( nSize ); |
| nSize = PRTDRV_RealizeObject(physDev->segptrPDEVICE, DRVOBJ_BRUSH, |
| win16drv_SegPtr_TextXForm); |