From 65f08451d563539b0f4aa25cb8fe22225e242314 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 4 Mar 2020 12:48:00 +0100 Subject: [PATCH] Checkbox refresh issue --- radio/src/thirdparty/libopenui/src/checkbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/checkbox.cpp b/radio/src/thirdparty/libopenui/src/checkbox.cpp index dd6dd0f85..9bdcf08c5 100644 --- a/radio/src/thirdparty/libopenui/src/checkbox.cpp +++ b/radio/src/thirdparty/libopenui/src/checkbox.cpp @@ -28,12 +28,12 @@ void CheckBox::paint(BitmapBuffer * dc) #if defined(HARDWARE_KEYS) void CheckBox::onEvent(event_t event) { - TRACE_WINDOWS("%s received event 0x%X", getWindowDebugString().c_str(), event); + TRACE_WINDOWS("%s received event 0x%X", getWindowDebugString("CheckBox").c_str(), event); if (event == EVT_KEY_BREAK(KEY_ENTER)) { onKeyPress(); _setValue(!getValue()); - invalidate({0, 0, 20, 20}); + invalidate(); } else { FormField::onEvent(event); @@ -47,7 +47,7 @@ bool CheckBox::onTouchEnd(coord_t x, coord_t y) onKeyPress(); _setValue(!getValue()); setFocus(); - invalidate({0, 0, 20, 20}); + invalidate(); return true; } #endif