X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f6c54eb076d760cbb6fb15e899f15fbbd575850..daa66792aa4a108887d2b4e8078df6067b6a762f:/samples/opengl/isosurf/isosurf.cpp diff --git a/samples/opengl/isosurf/isosurf.cpp b/samples/opengl/isosurf/isosurf.cpp index 895c3d44e3..9e474230f1 100644 --- a/samples/opengl/isosurf/isosurf.cpp +++ b/samples/opengl/isosurf/isosurf.cpp @@ -379,7 +379,7 @@ void TestGLCanvas::OnSize(wxSizeEvent& event) void TestGLCanvas::OnChar(wxKeyEvent& event) { - switch(event.KeyCode()) { + switch(event.GetKeyCode()) { case WXK_ESCAPE: exit(0); case WXK_LEFT: