summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/GameView.cpp1
-rw-r--r--src/game/SampleTool.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index c8b4684..c352b79 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1790,6 +1790,7 @@ void GameView::OnDraw()
{
ren->clearScreen(1.0f);
ren->RenderBegin();
+ ren->SetSample(c->PointTranslate(currentMouse).X, c->PointTranslate(currentMouse).Y);
if(selectMode == SelectNone && (!zoomEnabled || zoomCursorFixed) && activeBrush && currentMouse.X >= 0 && currentMouse.X < XRES && currentMouse.Y >= 0 && currentMouse.Y < YRES)
{
ui::Point finalCurrentMouse = c->PointTranslate(currentMouse);
diff --git a/src/game/SampleTool.cpp b/src/game/SampleTool.cpp
index bdebee6..a42a214 100644
--- a/src/game/SampleTool.cpp
+++ b/src/game/SampleTool.cpp
@@ -24,7 +24,7 @@ void SampleTool::Draw(Simulation * sim, Brush * brush, ui::Point position)
{
if(gameModel->GetColourSelectorVisibility())
{
- pixel colour = gameModel->GetRenderer()->GetPixel(position.X, position.Y);
+ pixel colour = gameModel->GetRenderer()->sampleColor;
gameModel->SetColourSelectorColour(ui::Colour(PIXR(colour), PIXG(colour), PIXB(colour), 255));
}
else