diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-28 15:33:22 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-28 15:33:22 +0200 |
commit | 887194ccc11fe75188d61c1f24a79eb204053489 (patch) | |
tree | 482e675e2ec479b1219ee757323d6cdc60cc2af7 /osd.h | |
parent | 3c0dbfe19e06ca1f47a9940b23600dcb37daac07 (diff) | |
download | vdr-887194ccc11fe75188d61c1f24a79eb204053489.tar.gz vdr-887194ccc11fe75188d61c1f24a79eb204053489.tar.bz2 |
cBitmap::DrawBitmap() now also resets the palette if the entire bitmap area is covered
Diffstat (limited to 'osd.h')
-rw-r--r-- | osd.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.h 1.41 2004/05/15 14:54:37 kls Exp $ + * $Id: osd.h 1.42 2004/05/28 15:25:58 kls Exp $ */ #ifndef __OSD_H @@ -122,9 +122,12 @@ public: ///< unchanged. bool Contains(int x, int y) const; ///< Returns true if this bitmap contains the point (x, y). + bool Covers(int x1, int y1, int x2, int y2) const; + ///< Returns true if the rectangle defined by the given coordinates + ///< completely covers this bitmap. bool Intersects(int x1, int y1, int x2, int y2) const; - ///< Returns true if this bitmap intersects with the rectangle - ///< defined by the given coordinates. + ///< Returns true if the rectangle defined by the given coordinates + ///< intersects with this bitmap. bool Dirty(int &x1, int &y1, int &x2, int &y2); ///< Tells whether there is a dirty area and returns the bounding ///< rectangle of that area (relative to the bitmaps origin). |