diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-14 11:22:56 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-05-14 11:22:56 +0200 |
commit | 3688b801c728934db95dc2f2d2738696f248c919 (patch) | |
tree | f5c49dd9d91d29f08ef6d4800331451c56b54d25 /osd.c | |
parent | e096b86ef698a2121b528816d3d22a0b056cbe5d (diff) | |
download | vdr-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |