diff --git a/src/gui/components/cc_frm_clock.cpp b/src/gui/components/cc_frm_clock.cpp index 6aec1a1ab..dc80add69 100644 --- a/src/gui/components/cc_frm_clock.cpp +++ b/src/gui/components/cc_frm_clock.cpp @@ -94,7 +94,7 @@ CComponentsFrmClock::CComponentsFrmClock( const int& x_pos, //set default running clock properties cl_interval = interval_seconds; cl_timer = NULL; - paintClock = false; + cl_blocked = true; #if 0 may_blit = true; #endif @@ -312,7 +312,7 @@ void CComponentsFrmClock::initCCLockItems() //this member is provided for slot with timer event "OnTimer" void CComponentsFrmClock::ShowTime() { - if (paintClock) { + if (!cl_blocked) { //paint segements, but wihtout saved backgrounds paint(CC_SAVE_SCREEN_NO); } @@ -365,7 +365,7 @@ bool CComponentsFrmClock::stopClock() bool CComponentsFrmClock::Start() { if (startClock()) { - paintClock = true; + cl_blocked = !cc_allow_paint; return true; } return false; @@ -374,7 +374,7 @@ bool CComponentsFrmClock::Start() bool CComponentsFrmClock::Stop() { if (stopClock()){ - paintClock = false; + cl_blocked = true; return true; } diff --git a/src/gui/components/cc_frm_clock.h b/src/gui/components/cc_frm_clock.h index 8680baeaa..441a8172b 100644 --- a/src/gui/components/cc_frm_clock.h +++ b/src/gui/components/cc_frm_clock.h @@ -63,7 +63,7 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen char cl_timestr[32]; ///handle paint clock within thread and is not similar to cc_allow_paint - bool paintClock; + bool cl_blocked; ///object: font render object Font *cl_font; @@ -151,7 +151,7 @@ class CComponentsFrmClock : public CComponentsForm, public CCTextScreen ///same like Stop() but for usage as simple call without return value void block(){Stop();} ///return true on blocked status, blocked means clock can be initalized but would be not paint, to unblock use unblock() - bool isBlocked(void) {return !paintClock;} + bool isBlocked(void) {return cl_blocked;} ///returns true, if clock is running bool isRun() const {return cl_timer ? cl_timer->isRun() : false;}