summaryrefslogtreecommitdiff
path: root/src/game/SampleTool.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-02-09 23:18:53 (GMT)
committer jacob1 <jfu614@gmail.com>2013-02-09 23:18:53 (GMT)
commitdc6398a33e3be47a83ff38b9bbabedcbe6756341 (patch)
tree48de29237b65291e95c1618abd3ab8cbb7329372 /src/game/SampleTool.cpp
parenta989d977442674232a8512bb52ff06af1b93c58a (diff)
downloadpowder-dc6398a33e3be47a83ff38b9bbabedcbe6756341.zip
powder-dc6398a33e3be47a83ff38b9bbabedcbe6756341.tar.gz
fix deco sample tool with 1 px brush, fix deco sample also sampling HUD/other text
Diffstat (limited to 'src/game/SampleTool.cpp')
-rw-r--r--src/game/SampleTool.cpp2
1 files changed, 1 insertions, 1 deletions
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