Fixed bug (hopefully) that caused windows to be only partially repainted. Last update rect was being missed in wxCanvasRepaintProc().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
95814e4902
commit
6970c7b916
@ -1840,22 +1840,14 @@ static void wxCanvasRepaintProc(Widget drawingArea,
|
|||||||
{
|
{
|
||||||
case Expose:
|
case Expose:
|
||||||
{
|
{
|
||||||
|
win->AddUpdateRect(event->xexpose.x, event->xexpose.y,
|
||||||
|
event->xexpose.width, event->xexpose.height);
|
||||||
|
|
||||||
if (event -> xexpose.count == 0)
|
if (event -> xexpose.count == 0)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
wxPaintEvent event(win->GetId());
|
|
||||||
event.SetEventObject(win);
|
|
||||||
win->GetEventHandler()->ProcessEvent(event);
|
|
||||||
#endif // 0
|
|
||||||
|
|
||||||
win->DoPaint();
|
win->DoPaint();
|
||||||
win->ClearUpdateRects();
|
win->ClearUpdateRects();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
win->AddUpdateRect(event->xexpose.x, event->xexpose.y,
|
|
||||||
event->xexpose.width, event->xexpose.height);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user