From a53e726400f5bbb90921d78612d498e1c944ef6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 12 Apr 2005 08:15:25 +0000 Subject: [PATCH] StrokeLine takes a non-const DrawData, penlocation is altered. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12338 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/drawing/DisplayDriverImpl.cpp | 4 ++-- src/servers/app/drawing/DisplayDriverPainter.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/servers/app/drawing/DisplayDriverImpl.cpp b/src/servers/app/drawing/DisplayDriverImpl.cpp index 23d334b6d1..dc86edd410 100644 --- a/src/servers/app/drawing/DisplayDriverImpl.cpp +++ b/src/servers/app/drawing/DisplayDriverImpl.cpp @@ -1646,7 +1646,7 @@ void DisplayDriverImpl::StrokeLine(const BPoint &start, const BPoint &end, const \param end Ending point \param d The relevant drawing data for this line */ -void DisplayDriverImpl::StrokeLine(const BPoint &start, const BPoint &end, const DrawData *d) +void DisplayDriverImpl::StrokeLine(const BPoint &start, const BPoint &end, DrawData *d) { Lock(); @@ -1759,7 +1759,7 @@ void DisplayDriverImpl::StrokePoint(const BPoint& pt, const RGBColor &color) Invalidate(BRect(pt,pt)); } -void DisplayDriverImpl::StrokePoint(const BPoint& pt, const DrawData *d) +void DisplayDriverImpl::StrokePoint(const BPoint& pt, DrawData *d) { StrokeLine(pt, pt, d); Invalidate(BRect(pt,pt)); diff --git a/src/servers/app/drawing/DisplayDriverPainter.h b/src/servers/app/drawing/DisplayDriverPainter.h index 40596733d9..5ff5817184 100644 --- a/src/servers/app/drawing/DisplayDriverPainter.h +++ b/src/servers/app/drawing/DisplayDriverPainter.h @@ -125,14 +125,14 @@ class DisplayDriverPainter : public DisplayDriver { virtual void StrokeLine( const BPoint &start, const BPoint &end, - const DrawData *d); + DrawData *d); // this version used by Decorator virtual void StrokePoint( const BPoint &pt, const RGBColor &color); virtual void StrokePoint( const BPoint &pt, - const DrawData *d); + DrawData *d); virtual void StrokePolygon( BPoint *ptlist, int32 numpts,