diff options
author | louis <louis.braun@gmx.de> | 2014-01-22 17:47:44 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-01-22 17:47:44 +0100 |
commit | 0d3d2efd62817b7ed9fe290ec08801eb19e081b0 (patch) | |
tree | 89c2e9ad2b876d2d2270431fdba3cd3e18e8748d | |
parent | 5132a3058ac546990f560ed23880e89835bb5128 (diff) | |
download | vdr-plugin-tvguide-0d3d2efd62817b7ed9fe290ec08801eb19e081b0.tar.gz vdr-plugin-tvguide-0d3d2efd62817b7ed9fe290ec08801eb19e081b0.tar.bz2 |
added graphicsmagick compatibility patch
-rw-r--r-- | imageloader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/imageloader.c b/imageloader.c index 8b913ea..3ad7ab6 100644 --- a/imageloader.c +++ b/imageloader.c @@ -98,8 +98,9 @@ bool cImageLoader::LoadOsdElement(cString name, int width, int height) { success = LoadImage(*name, *path, "png"); if (!success) return false; - cString geometry = cString::sprintf("%dx%d!", width, height); - buffer.resize(Geometry(*geometry)); + Geometry size(width, height); + size.aspect(true); + buffer.sample(size); return true; } |