From 356c6d87496ed1f799d83690a29a3dc8ada4def0 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/82d39dd09f5640c89e133a94ca4b7e5866ecfffb Author: Thilo Graf Date: 2017-01-23 (Mon, 23 Jan 2017) --- 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)