X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a9929405bf1556a7ddccad8ae96e3440e2124e0..6ba5438dda164146bf36ca729f8328332fae36b7:/samples/opengl/cube/cube.cpp diff --git a/samples/opengl/cube/cube.cpp b/samples/opengl/cube/cube.cpp index eda0d5e612..66bac043e0 100644 --- a/samples/opengl/cube/cube.cpp +++ b/samples/opengl/cube/cube.cpp @@ -32,7 +32,7 @@ #include "cube.h" #include "../../sample.xpm" -#ifndef __WXMSW__ // for wxStopWatch, see remark below +#ifndef __WXMSW__ // for StopWatch, see remark below #if defined(__WXMAC__) && !defined(__DARWIN__) #include #include @@ -136,7 +136,7 @@ int ScanCodeDialog::GetValue() in time (in sec) (because current version of wxGetElapsedTime doesn´t works right with glibc-2.1 and linux, at least for me) -----------------------------------------------------------------------*/ -unsigned long wxStopWatch( unsigned long *sec_base ) +unsigned long StopWatch( unsigned long *sec_base ) { unsigned long secs,msec; @@ -191,13 +191,13 @@ TestGLCanvas::TestGLCanvas(wxWindow *parent, wxWindowID id, m_rright = WXK_RIGHT; } -TestGLCanvas::TestGLCanvas(wxWindow *parent, const TestGLCanvas &other, +TestGLCanvas::TestGLCanvas(wxWindow *parent, const TestGLCanvas *other, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) - : wxGLCanvas(parent, other.GetContext(), id, pos, size, style|wxFULL_REPAINT_ON_RESIZE , name) + : wxGLCanvas(parent, other->GetContext(), id, pos, size, style|wxFULL_REPAINT_ON_RESIZE , name) { m_init = false; - m_gllist = other.m_gllist; // share display list + m_gllist = other->m_gllist; // share display list m_rleft = WXK_LEFT; m_rright = WXK_RIGHT; } @@ -373,7 +373,7 @@ void TestGLCanvas::OnKeyDown( wxKeyEvent& event ) { m_TimeInitialized = 1; m_xsynct = event.GetTimestamp(); - m_gsynct = wxStopWatch(&m_secbase); + m_gsynct = StopWatch(&m_secbase); m_Key = evkey; m_StartTime = 0; @@ -394,9 +394,9 @@ void TestGLCanvas::OnKeyDown( wxKeyEvent& event ) Action( m_Key, m_LastTime-m_StartTime, currTime-m_StartTime ); #if defined(__WXMAC__) && !defined(__DARWIN__) - m_LastRedraw = currTime; // wxStopWatch() doesn't work on Mac... + m_LastRedraw = currTime; // StopWatch() doesn't work on Mac... #else - m_LastRedraw = wxStopWatch(&m_secbase) - m_gsynct; + m_LastRedraw = StopWatch(&m_secbase) - m_gsynct; #endif m_LastTime = currTime; }