summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-14 11:22:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-14 11:22:56 +0200
commit3688b801c728934db95dc2f2d2738696f248c919 (patch)
treef5c49dd9d91d29f08ef6d4800331451c56b54d25 /osd.c
parente096b86ef698a2121b528816d3d22a0b056cbe5d (diff)
downloadvdr-3688b801c728934db95dc2f2d2738696f248c919.tar.gz
vdr-3688b801c728934db95dc2f2d2738696f248c919.tar.bz2
Made cOsd::isOpen an integer counter to avoid problems with messages when a cOsdObject uses the raw OSD
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/osd.c b/osd.c
index 8b10f74f..b0d3eeaa 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 1.59 2004/12/19 12:27:38 kls Exp $
+ * $Id: osd.c 1.60 2005/05/14 11:16:30 kls Exp $
*/
#include "osd.h"
@@ -574,7 +574,7 @@ const tIndex *cBitmap::Data(int x, int y)
// --- cOsd ------------------------------------------------------------------
-bool cOsd::isOpen = false;
+int cOsd::isOpen = 0;
cOsd::cOsd(int Left, int Top)
{
@@ -585,7 +585,7 @@ cOsd::cOsd(int Left, int Top)
left = Left;
top = Top;
width = height = 0;
- isOpen = true;
+ isOpen++;
}
cOsd::~cOsd()
@@ -593,7 +593,7 @@ cOsd::~cOsd()
for (int i = 0; i < numBitmaps; i++)
delete bitmaps[i];
delete savedRegion;
- isOpen = false;
+ isOpen--;
}
cBitmap *cOsd::GetBitmap(int Area)