Added some more for DEBUG_WINDOWS
Allow for tracing when widget get invalidated and painted.
This commit is contained in:
@@ -195,9 +195,7 @@ void Layout::create()
|
|||||||
#if defined(DEBUG_WINDOWS)
|
#if defined(DEBUG_WINDOWS)
|
||||||
void Layout::paint(BitmapBuffer * dc)
|
void Layout::paint(BitmapBuffer * dc)
|
||||||
{
|
{
|
||||||
TRACE("### painting -> %s", getWindowDebugString().c_str());
|
TRACE_WINDOW("# painting -> %s", getWindowDebugString().c_str());
|
||||||
//rect_t zone = getMainZone();
|
|
||||||
//dc->drawSolidFilledRect( zone.x, zone.y + rect.y, zone.w, zone.h, DEFAULT_BGCOLOR);
|
|
||||||
LayoutBase::paint(dc);
|
LayoutBase::paint(dc);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -211,6 +209,8 @@ void Layout::checkEvents()
|
|||||||
if (now - lastRefresh >= LAYOUT_REFRESH) {
|
if (now - lastRefresh >= LAYOUT_REFRESH) {
|
||||||
lastRefresh = now;
|
lastRefresh = now;
|
||||||
invalidate();
|
invalidate();
|
||||||
|
|
||||||
|
TRACE_WINDOW(("# %s refresh: %s", factory->getId(), getWindowDebugString().c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user