added graphicsmagick compatibility patch

This commit is contained in:
louis 2014-01-22 17:47:44 +01:00
parent 5132a3058a
commit 0d3d2efd62

View File

@ -98,8 +98,9 @@ bool cImageLoader::LoadOsdElement(cString name, int width, int height) {
success = LoadImage(*name, *path, "png"); success = LoadImage(*name, *path, "png");
if (!success) if (!success)
return false; return false;
cString geometry = cString::sprintf("%dx%d!", width, height); Geometry size(width, height);
buffer.resize(Geometry(*geometry)); size.aspect(true);
buffer.sample(size);
return true; return true;
} }