summaryrefslogtreecommitdiff
path: root/ovgosd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ovgosd.c')
-rw-r--r--ovgosd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ovgosd.c b/ovgosd.c
index 6574658..d2e05ee 100644
--- a/ovgosd.c
+++ b/ovgosd.c
@@ -271,11 +271,17 @@ cOvgOsd::cOvgOsd(int Left, int Top, uint Level, cOvg *ovg) :
cOvgOsd::~cOvgOsd()
{
- m_ovg->Clear();
+ if (Active())
+ m_ovg->Clear();
+
+ SetActive(false);
}
void cOvgOsd::Flush(void)
{
+ if (!Active())
+ return;
+
if (IsTrueColor())
{
LOCK_PIXMAPS;