mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 18:34:21 +02:00
Add missing RenderFill function for brushes
This commit is contained in:
@@ -106,6 +106,10 @@ public:
|
|||||||
return;
|
return;
|
||||||
g->xor_bitmap(outline, position.X-radius.X, position.Y-radius.Y, size.X, size.Y);
|
g->xor_bitmap(outline, position.X-radius.X, position.Y-radius.Y, size.X, size.Y);
|
||||||
}
|
}
|
||||||
|
virtual void RenderFill(Graphics * g, ui::Point position)
|
||||||
|
{
|
||||||
|
//Do nothing for now - possibly draw some sort of flood fill mask
|
||||||
|
}
|
||||||
virtual void GenerateBitmap()
|
virtual void GenerateBitmap()
|
||||||
{
|
{
|
||||||
if(bitmap)
|
if(bitmap)
|
||||||
|
@@ -1068,6 +1068,10 @@ void GameView::OnDraw()
|
|||||||
}
|
}
|
||||||
activeBrush->RenderLine(g, c->PointTranslate(drawPoint1), finalCurrentMouse);
|
activeBrush->RenderLine(g, c->PointTranslate(drawPoint1), finalCurrentMouse);
|
||||||
}
|
}
|
||||||
|
else if(drawMode==DrawFill)
|
||||||
|
{
|
||||||
|
activeBrush->RenderFill(g, finalCurrentMouse);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
activeBrush->RenderPoint(g, finalCurrentMouse);
|
activeBrush->RenderPoint(g, finalCurrentMouse);
|
||||||
|
Reference in New Issue
Block a user