mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
gui/components/cc_frm_clock.cpp: add method to enable/disable auto-blit()
Conflicts: src/gui/components/cc_frm_clock.cpp
This commit is contained in:
@@ -78,6 +78,8 @@ CComponentsFrmClock::CComponentsFrmClock( const int& x_pos, const int& y_pos, c
|
|||||||
|
|
||||||
activeClock = activ;
|
activeClock = activ;
|
||||||
|
|
||||||
|
may_blit = true;
|
||||||
|
|
||||||
initCCLockItems();
|
initCCLockItems();
|
||||||
initParent(parent);
|
initParent(parent);
|
||||||
|
|
||||||
@@ -339,6 +341,9 @@ void CComponentsFrmClock::paint(bool do_save_bg)
|
|||||||
|
|
||||||
//paint form contents
|
//paint form contents
|
||||||
paintForm(do_save_bg);
|
paintForm(do_save_bg);
|
||||||
|
|
||||||
|
if (may_blit)
|
||||||
|
frameBuffer->blit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CComponentsFrmClock::setClockFontSize(int font_size)
|
void CComponentsFrmClock::setClockFontSize(int font_size)
|
||||||
|
@@ -49,6 +49,7 @@ class CComponentsFrmClock : public CComponentsForm
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
// bool cl_force_segment_paint;
|
// bool cl_force_segment_paint;
|
||||||
|
bool may_blit;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
///thread
|
///thread
|
||||||
@@ -141,6 +142,9 @@ class CComponentsFrmClock : public CComponentsForm
|
|||||||
|
|
||||||
///set clock activ/inactiv
|
///set clock activ/inactiv
|
||||||
virtual void setClockActiv(bool activ = true);
|
virtual void setClockActiv(bool activ = true);
|
||||||
|
|
||||||
|
///enable/disable automatic blitting
|
||||||
|
void setBlit(bool _may_blit = true) { may_blit = _may_blit; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user