diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-19 17:54:40 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-19 17:54:40 (GMT) |
| commit | 744df602d730cb925951d88d2350117b4a879b3f (patch) | |
| tree | 51f9de872d6fb0e4b7e6eced2b10a59e340f1bc4 /src/game/ToolButton.cpp | |
| parent | 4d961117bde4398ae4d72f2db96eef381371e2df (diff) | |
| download | powder-744df602d730cb925951d88d2350117b4a879b3f.zip powder-744df602d730cb925951d88d2350117b4a879b3f.tar.gz | |
Correct text colour on element buttons
Diffstat (limited to 'src/game/ToolButton.cpp')
| -rw-r--r-- | src/game/ToolButton.cpp | 2 |
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); |
