X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21562ad22334d8e1d3bb9bef40c8f8f6faf61c73..690ddfec6e14f663fd1b5b98f1b68208344d1ffc:/src/gtk/glcanvas.cpp?ds=sidebyside diff --git a/src/gtk/glcanvas.cpp b/src/gtk/glcanvas.cpp index 23d49c19a7..89ffe1ba9f 100644 --- a/src/gtk/glcanvas.cpp +++ b/src/gtk/glcanvas.cpp @@ -174,7 +174,7 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent, const wxPalette& palette) : m_createImplicitContext(true) { - m_sharedContext = wx_const_cast(wxGLContext *, shared); + m_sharedContext = const_cast(shared); Create(parent, id, pos, size, style, name, attribList, palette); } @@ -189,7 +189,7 @@ wxGLCanvas::wxGLCanvas(wxWindow *parent, : m_createImplicitContext(true) { m_sharedContext = NULL; - m_sharedContextOf = wx_const_cast(wxGLCanvas *, shared); + m_sharedContextOf = const_cast(shared); Create(parent, id, pos, size, style, name, attribList, palette); } @@ -205,7 +205,7 @@ bool wxGLCanvas::Create(wxWindow *parent, const int *attribList, const wxPalette& WXUNUSED_UNLESS_DEBUG(palette)) { - wxASSERT_MSG( !palette.IsOk(), _T("palettes not supported") ); + wxASSERT_MSG( !palette.IsOk(), wxT("palettes not supported") ); m_exposed = false; m_noExpose = true; @@ -247,7 +247,7 @@ bool wxGLCanvas::Create(wxWindow *parent, Window wxGLCanvas::GetXWindow() const { - GdkWindow *window = m_wxwindow->window; + GdkWindow* window = GTKGetDrawingWindow(); return window ? GDK_WINDOW_XWINDOW(window) : 0; }