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:
@@ -591,6 +591,7 @@ bool wxWindowMGL::Create(wxWindow *parent,
|
|||||||
x = 0; // FIXME_MGL, something better, see GTK+
|
x = 0; // FIXME_MGL, something better, see GTK+
|
||||||
if ( y == -1 )
|
if ( y == -1 )
|
||||||
y = 0; // FIXME_MGL, something better, see GTK+
|
y = 0; // FIXME_MGL, something better, see GTK+
|
||||||
|
AdjustForParentClientOrigin(x, y, 0);
|
||||||
w = WidthDefault(size.x);
|
w = WidthDefault(size.x);
|
||||||
h = HeightDefault(size.y);
|
h = HeightDefault(size.y);
|
||||||
|
|
||||||
@@ -1126,10 +1127,17 @@ void wxWindowMGL::HandlePaint(MGLDevCtx *dc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 // FIXME_MGL -- debugging stuff!
|
#ifdef __WXDEBUG__
|
||||||
dc->setColorRGB(255,0,255);
|
// FIXME_MGL -- debugging stuff, to be removed!
|
||||||
dc->fillRect(-1000,-1000,2000,2000);
|
static int debugPaintEvents = -1;
|
||||||
wxUsleep(50);
|
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
|
#endif
|
||||||
|
|
||||||
MGLRegion clip;
|
MGLRegion clip;
|
||||||
|
Reference in New Issue
Block a user