From 0d3d2efd62817b7ed9fe290ec08801eb19e081b0 Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 22 Jan 2014 17:47:44 +0100 Subject: [PATCH] added graphicsmagick compatibility patch --- imageloader.c | 5 +++-- 1 file 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; }