diff options
| author | louis <louis.braun@gmx.de> | 2015-03-31 06:57:02 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-03-31 06:57:02 +0200 |
| commit | 3d43200af00372dd54abe2b86b00ca15a4fc6d82 (patch) | |
| tree | 0acd63aa794fabae179d90c74e7ad38ad9d872c0 /libcore/imagecache.c | |
| parent | 1ba2ae905ad33f8e311100fd4e9e48653ca4b63d (diff) | |
| download | vdr-plugin-skindesigner-3d43200af00372dd54abe2b86b00ca15a4fc6d82.tar.gz vdr-plugin-skindesigner-3d43200af00372dd54abe2b86b00ca15a4fc6d82.tar.bz2 | |
added possibility to draw vertical text bottomum and topdown
Diffstat (limited to 'libcore/imagecache.c')
| -rw-r--r-- | libcore/imagecache.c | 6 |
1 files changed, 3 insertions, 3 deletions
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<string, cImage*>::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<string, cImage*>(imgName, image)); hit = cairoImageCache.find(imgName); |
