summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-25 16:28:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-25 16:35:59 +0300
commit684171f30e61ab2c594324a3ff78d0d2df6defb3 (patch)
tree993b60b0e0511670e5f35420351a3ada78b153f3 /src/gui/sdlfont.h
parenta2af9029410b20748b053bf0ca6f78ee27efef9e (diff)
downloadplus-684171f30e61ab2c594324a3ff78d0d2df6defb3.tar.gz
plus-684171f30e61ab2c594324a3ff78d0d2df6defb3.tar.bz2
plus-684171f30e61ab2c594324a3ff78d0d2df6defb3.tar.xz
plus-684171f30e61ab2c594324a3ff78d0d2df6defb3.zip
add in sdlfont map support also for calculating string widths.
Diffstat (limited to 'src/gui/sdlfont.h')
-rw-r--r--src/gui/sdlfont.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/sdlfont.h b/src/gui/sdlfont.h
index 41edf4145..9e439279f 100644
--- a/src/gui/sdlfont.h
+++ b/src/gui/sdlfont.h
@@ -99,6 +99,7 @@ class TextChunkList final
SDLTextChunk *end;
uint32_t size;
std::map<SDLTextChunkSmall, SDLTextChunk*> search;
+ std::map<std::string, SDLTextChunk*> searchWidth;
};
/**