mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
CCDraw: try to fix possible data race
Origin commit data
------------------
Commit: fc2eb68edc
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-04-16 (Sat, 16 Apr 2016)
This commit is contained in:
@@ -277,7 +277,12 @@ class CCDraw : public COSDFader, public CComponentsSignals
|
|||||||
|
|
||||||
///allow/disalows paint of item and its contents, but initialize of other properties are not touched
|
///allow/disalows paint of item and its contents, but initialize of other properties are not touched
|
||||||
///this can be understood as a counterpart to isPainted(), but before paint and value of is_painted is modified temporarily till next paint of item //TODO: is this sufficiently?
|
///this can be understood as a counterpart to isPainted(), but before paint and value of is_painted is modified temporarily till next paint of item //TODO: is this sufficiently?
|
||||||
void allowPaint(bool allow){cc_allow_paint = allow; is_painted = cc_allow_paint ? false : true;}
|
void allowPaint(bool allow) {
|
||||||
|
if (allow != cc_allow_paint)
|
||||||
|
cc_allow_paint = allow;
|
||||||
|
if (cc_allow_paint)
|
||||||
|
is_painted = false;
|
||||||
|
}
|
||||||
///returns visibility mode
|
///returns visibility mode
|
||||||
virtual bool paintAllowed(){return cc_allow_paint;};
|
virtual bool paintAllowed(){return cc_allow_paint;};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user