diff --git a/src/servers/app/server/DisplayDriver.cpp b/src/servers/app/server/DisplayDriver.cpp index 66cef6c3d4..7f2f79e9ba 100644 --- a/src/servers/app/server/DisplayDriver.cpp +++ b/src/servers/app/server/DisplayDriver.cpp @@ -1790,10 +1790,19 @@ void DisplayDriver::StrokePolygon(BPoint *ptlist, int32 numpts, DisplayDriver* d */ void DisplayDriver::StrokeRect(const BRect &r, RGBColor &color) { + Lock(); + StrokeSolidRect(r,color); + Unlock(); } void DisplayDriver::StrokeRect(const BRect &r, const DrawData *d) { + Lock(); + StrokePatternLine(r.LeftTop(),r.RightTop(),d); + StrokePatternLine(r.LeftTop(),r.LeftBottom(),d); + StrokePatternLine(r.RightTop(),r.RightBottom(),d); + StrokePatternLine(r.LeftBottom(),r.RightBottom(),d); + Unlock(); } void DisplayDriver::StrokeRect(const BRect &r, DisplayDriver* driver, SetHorizontalLineFuncType setHLine, SetVerticalLineFuncType setVLine)