From 3d43200af00372dd54abe2b86b00ca15a4fc6d82 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 31 Mar 2015 06:57:02 +0200 Subject: added possibility to draw vertical text bottomum and topdown --- libcore/imagecache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcore/imagecache.c') diff --git a/libcore/imagecache.c b/libcore/imagecache.c index e6188d2..ad063f6 100644 --- a/libcore/imagecache.c +++ b/libcore/imagecache.c @@ -332,17 +332,17 @@ cImage *cImageCache::GetSkinpart(string name, int width, int height) { return NULL; } -cImage *cImageCache::GetVerticalText(string text, tColor color, string font, int size) { +cImage *cImageCache::GetVerticalText(string text, tColor color, string font, int size, int direction) { cMutexLock MutexLock(&mutex); stringstream buf; - buf << text << "_" << size; + buf << text << "_" << size << "_" << direction; string imgName = buf.str(); map::iterator hit = cairoImageCache.find(imgName); if (hit != cairoImageCache.end()) { return (cImage*)hit->second; } else { cCairoImage c; - c.DrawTextVertical(text, color, font, size); + c.DrawTextVertical(text, color, font, size, direction); cImage *image = c.GetImage(); cairoImageCache.insert(pair(imgName, image)); hit = cairoImageCache.find(imgName); -- cgit v1.2.3