summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2015-02-16 15:18:59 +0100
committerJohns <johns98@gmx.net>2015-02-16 15:18:59 +0100
commit93ea660a380f307b43719410b5ea94c2020d02ea (patch)
tree73050983985c8768310a8f1ca7ff29cc798d3c64 /softhddevice.cpp
parent73ce4ba803d6a879e7ae0a005bd5f95952a0c8fc (diff)
downloadvdr-plugin-softhddevice-93ea660a380f307b43719410b5ea94c2020d02ea.tar.gz
vdr-plugin-softhddevice-93ea660a380f307b43719410b5ea94c2020d02ea.tar.bz2
Fix for compile with vdr 2.1.10, for older vdr versions.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index ba0cb2f..310855b 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -513,7 +513,11 @@ void cSoftOsd::Flush(void)
#endif
OsdDrawARGB(x, y, w, h, pm->Data());
+#if APIVERSNUM >= 20110
DestroyPixmap(pm);
+#else
+ delete pm;
+#endif
}
Dirty = 0;
}