diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-15 19:35:40 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-15 19:35:40 (GMT) |
| commit | 2511afec8bfaa0582928406b37e8b579fa267e4f (patch) | |
| tree | aae1674f5f076db275ec1c6b32271a69cff1489a /src/interface/Label.cpp | |
| parent | 2c9295007a287dc01ff63fcf7b3da141f7474e37 (diff) | |
| download | powder-2511afec8bfaa0582928406b37e8b579fa267e4f.zip powder-2511afec8bfaa0582928406b37e8b579fa267e4f.tar.gz | |
More stuff, better events and starting on interface
Diffstat (limited to 'src/interface/Label.cpp')
| -rw-r--r-- | src/interface/Label.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interface/Label.cpp b/src/interface/Label.cpp index 3a5ea85..c77b6bf 100644 --- a/src/interface/Label.cpp +++ b/src/interface/Label.cpp @@ -1,4 +1,6 @@ #include <string> +#include "Config.h" +#include "Global.h" #include "interface/Point.h" #include "interface/Label.h" @@ -33,6 +35,6 @@ Label::~Label() void Label::Draw(const Point& screenPos) { - Graphics * g = ui::Engine::Ref().g; + Graphics * g = Global::Ref().g; g->drawtext(Position.X+(Size.X-Graphics::textwidth((char *)LabelText.c_str()))/2, Position.Y+(Size.Y-10)/2, LabelText, 255, 255, 255, 255); } |
