wxMGL bugfixes:
- timers weren't scheduled properly - wxSizeEvent was sent even though the physical dimensions didn't change - wxDC had bugs in device origin computations git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -929,11 +929,15 @@ void wxWindowMGL::DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
}
|
||||
}
|
||||
|
||||
DoMoveWindow(x, y, width, height);
|
||||
if ( m_wnd->x != x || m_wnd->y != y ||
|
||||
(int)m_wnd->width != width || (int)m_wnd->height != height )
|
||||
{
|
||||
DoMoveWindow(x, y, width, height);
|
||||
|
||||
wxSizeEvent event(wxSize(width, height), GetId());
|
||||
event.SetEventObject(this);
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
wxSizeEvent event(wxSize(width, height), GetId());
|
||||
event.SetEventObject(this);
|
||||
GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
void wxWindowMGL::DoSetClientSize(int width, int height)
|
||||
|
Reference in New Issue
Block a user