Added some more for DEBUG_WINDOWS

Allow for tracing when widget get invalidated and painted.
This commit is contained in:
Raphael Coeffic
2021-04-18 07:58:14 +02:00
parent 1b07e2e76b
commit 4e22bcb645
+3 -3
View File
@@ -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());
}
}