BrushObj = (BRUSHOBJ*) GDIOBJ_LockObj(dc->w.hBrush, GO_BRUSH_MAGIC);
assert(BrushObj);
if (BrushObj->logbrush.lbStyle != BS_NULL)
- {
+ {
if (Width > 0)
{
DestRect.left = XLeft + dc->w.DCOrgX;
}
if (Height > 0)
{
- DestRect.top = YLeft + dc->w.DCOrgY;
+ DestRect.top = YLeft + dc->w.DCOrgY;
DestRect.bottom = YLeft + Height + dc->w.DCOrgY;
}
else
{
- DestRect.top = YLeft + Height + dc->w.DCOrgY;
+ DestRect.top = YLeft + Height + dc->w.DCOrgY;
DestRect.bottom = YLeft + dc->w.DCOrgY;
}
- ret = EngBitBlt(SurfObj,
+ ret = EngBitBlt(SurfObj,
NULL,
NULL,
NULL,
NULL,
PATCOPY);
}
- GDIOBJ_UnlockObj( dc->w.hBrush, GO_PEN_MAGIC );
+ GDIOBJ_UnlockObj( dc->w.hBrush, GO_BRUSH_MAGIC );
+ DC_ReleasePtr( hDC );
return(ret);
}