summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-05 13:20:19 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-05 13:20:19 +0200
commit32e9db211d15676861ed005a07fc96ede6cef275 (patch)
treee872faeac588c888417ad4dd198c376fd559e90e /osd.h
parent00645daa93f8b26de7b6a71ea425ef406bdf55d6 (diff)
downloadvdr-32e9db211d15676861ed005a07fc96ede6cef275.tar.gz
vdr-32e9db211d15676861ed005a07fc96ede6cef275.tar.bz2
Ignoring unused "none" color entries in XPM files written by some broken graphics tools
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/osd.h b/osd.h
index 1fc87819..947e076f 100644
--- a/osd.h
+++ b/osd.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.h 1.44 2004/06/05 11:40:12 kls Exp $
+ * $Id: osd.h 1.45 2004/06/05 12:38:44 kls Exp $
*/
#ifndef __OSD_H
@@ -136,9 +136,15 @@ public:
bool LoadXpm(const char *FileName);
///< Calls SetXpm() with the data from the file FileName.
///< Returns true if the operation was successful.
- bool SetXpm(char *Xpm[]);
+ bool SetXpm(char *Xpm[], bool IgnoreNone = false);
///< Sets this bitmap to the given XPM data. Any previous bitmap or
///< palette data will be overwritten with the new data.
+ ///< If IgnoreNone is true, a "none" color entry will be ignored.
+ ///< Only set IgnoreNone to true if you know that there is a "none"
+ ///< color entry in the XPM data and that this entry is not used!
+ ///< If SetXpm() is called with IgnoreNone set to false and the XPM
+ ///< data contains an unused "none" entry, it will be automatically
+ ///< called again with IgnoreNone set to true.
///< Returns true if the operation was successful.
void SetIndex(int x, int y, tIndex Index);
///< Sets the index at the given coordinates to Index.