summaryrefslogtreecommitdiff
path: root/src/game/ToolButton.cpp
diff options
context:
space:
mode:
authorbuild.powdertoy.co.uk <admin@powdertoy.co.uk>2012-07-20 19:10:56 (GMT)
committer build.powdertoy.co.uk <admin@powdertoy.co.uk>2012-07-20 19:10:56 (GMT)
commite77a43d9a4c8c149b26037ce0751bb944c63b3c4 (patch)
tree411058fe9d2a8e0d034c3d9eb64dd831ecfa9f5e /src/game/ToolButton.cpp
parentd328b84b1330b0e8f3a7f87ce48b9b20ea4b6d01 (diff)
parent0064152442cef712e940b1abce246da9c698f6d3 (diff)
downloadpowder-e77a43d9a4c8c149b26037ce0751bb944c63b3c4.zip
powder-e77a43d9a4c8c149b26037ce0751bb944c63b3c4.tar.gz
Merge branch 'master' of github.com:FacialTurd/PowderToypp
Diffstat (limited to 'src/game/ToolButton.cpp')
-rw-r--r--src/game/ToolButton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/ToolButton.cpp b/src/game/ToolButton.cpp
index 5c9f2d4..7295309 100644
--- a/src/game/ToolButton.cpp
+++ b/src/game/ToolButton.cpp
@@ -38,7 +38,7 @@ void ToolButton::OnMouseUp(int x, int y, unsigned int button)
void ToolButton::Draw(const ui::Point& screenPos)
{
Graphics * g = ui::Engine::Ref().g;
- int totalColour = Appearance.BackgroundInactive.Red + (3*Appearance.BackgroundInactive.Green) + (2*Appearance.BackgroundInactive.Blue);
+ int totalColour = Appearance.BackgroundInactive.Blue + (3*Appearance.BackgroundInactive.Green) + (2*Appearance.BackgroundInactive.Red);
g->fillrect(screenPos.X+2, screenPos.Y+2, Size.X-4, Size.Y-4, Appearance.BackgroundInactive.Red, Appearance.BackgroundInactive.Green, Appearance.BackgroundInactive.Blue, Appearance.BackgroundInactive.Alpha);