From 44eebba080589378b584e4c1bba1bceae35a95ff Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 23 Jan 2017 20:34:54 +0100 Subject: [PATCH] CCDraw: simplified statement for blink init --- src/gui/components/cc_draw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/components/cc_draw.cpp b/src/gui/components/cc_draw.cpp index 54acff507..10f00d890 100644 --- a/src/gui/components/cc_draw.cpp +++ b/src/gui/components/cc_draw.cpp @@ -732,10 +732,10 @@ void CCDraw::enableShadow(int mode, const int& shadow_width, bool force_paint) void CCDraw::paintTrigger() { - if (!is_painted) - paint1(); - else + if (is_painted) hide(); + else + paint(); } bool CCDraw::paintBlink(CComponentsTimer* Timer)