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");
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;
}