diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-05 18:47:03 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-05 18:47:03 (GMT) |
| commit | 5da70ef8a633328d7441fd08c7e8592247f52f7b (patch) | |
| tree | cc1f677e03cca255d461885bfd20fbbcaa47e159 /src/graphics/Graphics.cpp | |
| parent | 09c266f25256d25103781e74038fc5265b957459 (diff) | |
| download | powder-5da70ef8a633328d7441fd08c7e8592247f52f7b.zip powder-5da70ef8a633328d7441fd08c7e8592247f52f7b.tar.gz | |
Ensure errors are caught and displayed during tag operations. Fix some issues with the Tag ui. Fixes #157
Diffstat (limited to 'src/graphics/Graphics.cpp')
| -rw-r--r-- | src/graphics/Graphics.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp index c4c0d31..73a6e7b 100644 --- a/src/graphics/Graphics.cpp +++ b/src/graphics/Graphics.cpp @@ -874,15 +874,27 @@ void Graphics::draw_icon(int x, int y, Icon icon, unsigned char alpha, bool inve case IconDelete: if(invert) { - drawchar(x, y, 0x86, 255, 55, 55, alpha); + drawchar(x, y, 0x86, 159, 47, 31, alpha); drawchar(x, y, 0x85, 0, 0, 0, alpha); } else { - drawchar(x, y, 0x86, 255, 55, 55, alpha); + drawchar(x, y, 0x86, 159, 47, 31, alpha); drawchar(x, y, 0x85, 255, 255, 255, alpha); } break; + case IconAdd: + if(invert) + { + drawchar(x, y, 0x86, 32, 144, 32, alpha); + drawchar(x, y, 0x89, 0, 0, 0, alpha); + } + else + { + drawchar(x, y, 0x86, 32, 144, 32, alpha); + drawchar(x, y, 0x89, 255, 255, 255, alpha); + } + break; default: if(invert) drawchar(x, y, 't', 0, 0 ,0 ,alpha); |
