From 4e22bcb64574b1a9f763073db412bb541860bd65 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 16 Apr 2021 17:51:14 +0200 Subject: [PATCH] Added some more for DEBUG_WINDOWS Allow for tracing when widget get invalidated and painted. --- radio/src/gui/colorlcd/layout.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio/src/gui/colorlcd/layout.cpp b/radio/src/gui/colorlcd/layout.cpp index d3eb224c1..95b7caa38 100644 --- a/radio/src/gui/colorlcd/layout.cpp +++ b/radio/src/gui/colorlcd/layout.cpp @@ -195,9 +195,7 @@ void Layout::create() #if defined(DEBUG_WINDOWS) void Layout::paint(BitmapBuffer * dc) { - TRACE("### painting -> %s", getWindowDebugString().c_str()); - //rect_t zone = getMainZone(); - //dc->drawSolidFilledRect( zone.x, zone.y + rect.y, zone.w, zone.h, DEFAULT_BGCOLOR); + TRACE_WINDOW("# painting -> %s", getWindowDebugString().c_str()); LayoutBase::paint(dc); } #endif @@ -211,6 +209,8 @@ void Layout::checkEvents() if (now - lastRefresh >= LAYOUT_REFRESH) { lastRefresh = now; invalidate(); + + TRACE_WINDOW(("# %s refresh: %s", factory->getId(), getWindowDebugString().c_str()); } }