Generate a size event for wxGLCanvas when it is realized
This ensures that a wxSizeEvent handler can set the initial viewport size correctly. Fixes the initial display of the pyramid sample with GTK2.
This commit is contained in:
@@ -332,6 +332,13 @@ Window wxGLCanvas::GetXWindow() const
|
||||
return window ? GDK_WINDOW_XID(window) : 0;
|
||||
}
|
||||
|
||||
void wxGLCanvas::GTKHandleRealized()
|
||||
{
|
||||
BaseType::GTKHandleRealized();
|
||||
|
||||
SendSizeEvent();
|
||||
}
|
||||
|
||||
void wxGLCanvas::OnInternalIdle()
|
||||
{
|
||||
if (m_exposed)
|
||||
|
||||
Reference in New Issue
Block a user