summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-28 12:09:35 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-28 12:09:35 (GMT)
commitf9eeebb91039d88ceb7e4cf4e4aecf374d77e633 (patch)
treef6efdfcd4189a8c5b2fb483ecb8737633d71461c /src/game/GameView.cpp
parent30b11a7724c20bb3cf09a9dd67ee7ea39093c44b (diff)
downloadpowder-f9eeebb91039d88ceb7e4cf4e4aecf374d77e633.zip
powder-f9eeebb91039d88ceb7e4cf4e4aecf374d77e633.tar.gz
Draw brush using renderer, fixes issue #25
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 7e34b85..a35f524 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1206,7 +1206,7 @@ void GameView::OnDraw()
{
finalCurrentMouse = rectSnapCoords(c->PointTranslate(drawPoint1), finalCurrentMouse);
}
- activeBrush->RenderRect(g, c->PointTranslate(drawPoint1), finalCurrentMouse);
+ activeBrush->RenderRect(ren, c->PointTranslate(drawPoint1), finalCurrentMouse);
}
else if(drawMode==DrawLine && isMouseDown)
{
@@ -1214,15 +1214,15 @@ void GameView::OnDraw()
{
finalCurrentMouse = lineSnapCoords(c->PointTranslate(drawPoint1), finalCurrentMouse);
}
- activeBrush->RenderLine(g, c->PointTranslate(drawPoint1), finalCurrentMouse);
+ activeBrush->RenderLine(ren, c->PointTranslate(drawPoint1), finalCurrentMouse);
}
else if(drawMode==DrawFill)
{
- activeBrush->RenderFill(g, finalCurrentMouse);
+ activeBrush->RenderFill(ren, finalCurrentMouse);
}
else
{
- activeBrush->RenderPoint(g, finalCurrentMouse);
+ activeBrush->RenderPoint(ren, finalCurrentMouse);
}
}
ren->RenderEnd();