diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-19 18:14:38 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-07-19 18:14:38 (GMT) |
| commit | 4e9e0ff7bf61672935ee58af002c6113886bcdb0 (patch) | |
| tree | 727243450738ef102613709179a9c42fa1bd1f8a /src/interface/Textbox.cpp | |
| parent | 9a949395857c54ea7a9febc80e1be0d8a4c9089b (diff) | |
| download | powder-4e9e0ff7bf61672935ee58af002c6113886bcdb0.zip powder-4e9e0ff7bf61672935ee58af002c6113886bcdb0.tar.gz | |
Fix icon drawing in text boxes
Diffstat (limited to 'src/interface/Textbox.cpp')
| -rw-r--r-- | src/interface/Textbox.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp index 7d939fd..fbe3c6b 100644 --- a/src/interface/Textbox.cpp +++ b/src/interface/Textbox.cpp @@ -244,6 +244,8 @@ void Textbox::Draw(const Point& screenPos) } if(border) g->drawrect(screenPos.X, screenPos.Y, Size.X, Size.Y, 160, 160, 160, 255); } + if(Appearance.icon) + g->draw_icon(screenPos.X+iconPosition.X, screenPos.Y+iconPosition.Y, Appearance.icon); } /* |
