diff options
| author | jacob1 <jfu614@gmail.com> | 2012-09-21 02:28:32 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-25 19:10:23 (GMT) |
| commit | de7218da8dfcac8d66280811ea755b75da474301 (patch) | |
| tree | bc51da4499a110819e4ab6263ad29ac50e647e42 /src/game/PropertyTool.cpp | |
| parent | 5de2a4e479788977dc1f5f84430bd644bcd49151 (diff) | |
| download | powder-de7218da8dfcac8d66280811ea755b75da474301.zip powder-de7218da8dfcac8d66280811ea755b75da474301.tar.gz | |
Fix black border around dialogs being off (I think I got all of them)
Diffstat (limited to 'src/game/PropertyTool.cpp')
| -rw-r--r-- | src/game/PropertyTool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/PropertyTool.cpp b/src/game/PropertyTool.cpp index 67c276a..811d10e 100644 --- a/src/game/PropertyTool.cpp +++ b/src/game/PropertyTool.cpp @@ -54,7 +54,7 @@ position(position_) messageLabel->Appearance.VerticalAlign = ui::Appearance::AlignTop; AddComponent(messageLabel); - ui::Button * okayButton = new ui::Button(ui::Point(0, Size.Y-16), ui::Point(Size.X, 17), "OK"); + ui::Button * okayButton = new ui::Button(ui::Point(0, Size.Y-17), ui::Point(Size.X, 17), "OK"); okayButton->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; okayButton->Appearance.VerticalAlign = ui::Appearance::AlignMiddle; okayButton->Appearance.BorderInactive = ui::Colour(200, 200, 200); @@ -203,7 +203,7 @@ void PropertyWindow::OnDraw() { Graphics * g = ui::Engine::Ref().g; - g->clearrect(Position.X-2, Position.Y-2, Size.X+4, Size.Y+4); + g->clearrect(Position.X-2, Position.Y-2, Size.X+3, Size.Y+3); g->drawrect(Position.X, Position.Y, Size.X, Size.Y, 200, 200, 200, 255); } |
