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
This commit is contained in:
Stephan Aßmus 2005-04-12 08:15:25 +00:00
parent a11f3c21fd
commit a53e726400
2 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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,