mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
added graphicsmagick compatibility patch
This commit is contained in:
parent
5132a3058a
commit
0d3d2efd62
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user