diff options
-rw-r--r-- | macosx/PictureGLView.h | 8 | ||||
-rw-r--r-- | macosx/PictureGLView.mm | 7 |
2 files changed, 9 insertions, 6 deletions
diff --git a/macosx/PictureGLView.h b/macosx/PictureGLView.h index 78f9afdf2..bcbb09517 100644 --- a/macosx/PictureGLView.h +++ b/macosx/PictureGLView.h @@ -27,11 +27,13 @@ float fCoordY; uint8_t * fBuffers[2]; - /* Tiger */ - //unsigned long fTextures[2]; + #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 + unsigned long fTextures[2]; + #else /* Leopard */ unsigned int fTextures[2]; - + #endif; + int fLastEffect; int fAnimDuration; int fFrameRate; diff --git a/macosx/PictureGLView.mm b/macosx/PictureGLView.mm index 6a753380c..8aeacba11 100644 --- a/macosx/PictureGLView.mm +++ b/macosx/PictureGLView.mm @@ -414,10 +414,11 @@ static int GetAlignedSize( int size ) /* Swap buffers only during the vertical retrace of the monitor. http://developer.apple.com/documentation/GraphicsImaging/ Conceptual/OpenGL/chap5/chapter_5_section_44.html */ - /* Tiger */ - //long params[] = { 1 }; - /* Leopard */ + #if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4 + long params[] = { 1 }; + #else int params[] = { 1 }; + #endif CGLSetParameter( CGLGetCurrentContext(), kCGLCPSwapInterval, params ); if( !( anim & HB_ANIMATE_NONE ) ) |