1. make paint events debugging runtime switch instead of compile time
2. fixed incorrect rendering of wxListCtrl (newly created controls didn't account for parent's client origin) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
21c3670fec
commit
821860051a
@ -591,6 +591,7 @@ bool wxWindowMGL::Create(wxWindow *parent,
|
||||
x = 0; // FIXME_MGL, something better, see GTK+
|
||||
if ( y == -1 )
|
||||
y = 0; // FIXME_MGL, something better, see GTK+
|
||||
AdjustForParentClientOrigin(x, y, 0);
|
||||
w = WidthDefault(size.x);
|
||||
h = HeightDefault(size.y);
|
||||
|
||||
@ -1126,10 +1127,17 @@ void wxWindowMGL::HandlePaint(MGLDevCtx *dc)
|
||||
return;
|
||||
}
|
||||
|
||||
#if 0 // FIXME_MGL -- debugging stuff!
|
||||
dc->setColorRGB(255,0,255);
|
||||
dc->fillRect(-1000,-1000,2000,2000);
|
||||
wxUsleep(50);
|
||||
#ifdef __WXDEBUG__
|
||||
// FIXME_MGL -- debugging stuff, to be removed!
|
||||
static int debugPaintEvents = -1;
|
||||
if ( debugPaintEvents == -1 )
|
||||
debugPaintEvents = wxGetEnv(wxT("WXMGL_DEBUG_PAINT_EVENTS"), NULL);
|
||||
if ( debugPaintEvents )
|
||||
{
|
||||
dc->setColorRGB(255,0,255);
|
||||
dc->fillRect(-1000,-1000,2000,2000);
|
||||
wxUsleep(50);
|
||||
}
|
||||
#endif
|
||||
|
||||
MGLRegion clip;
|
||||
|
Loading…
Reference in New Issue
Block a user