summaryrefslogtreecommitdiffstats
path: root/macosx/PictureGLView.mm
diff options
context:
space:
mode:
authorritsuka <[email protected]>2007-11-27 10:01:02 +0000
committerritsuka <[email protected]>2007-11-27 10:01:02 +0000
commit64f02bda2cf12f36199ba69995e9be0db4ae3ba5 (patch)
tree66fd4ec4abdaf03dec0c5c6fb0f236b7d5488048 /macosx/PictureGLView.mm
parentd904fb456d4bd95742ae21fdfff8f99b4c086e01 (diff)
MacGUI: Added a little macro in PictureGLView to make it compiles on Tiger again.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1079 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureGLView.mm')
-rw-r--r--macosx/PictureGLView.mm7
1 files changed, 4 insertions, 3 deletions
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 ) )