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");
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user