# HG changeset patch # User nplourde # Date 1117983456 0 # Node ID 0968fd3d5675355ae85027c5b935f877f21437e1 # Parent f46eae5e271bce6dc1c3d89e201b517685522fa9 Pure cosmetic diff -r f46eae5e271b -r 0968fd3d5675 libvo/vo_macosx.m --- a/libvo/vo_macosx.m Sun Jun 05 14:47:26 2005 +0000 +++ b/libvo/vo_macosx.m Sun Jun 05 14:57:36 2005 +0000 @@ -22,8 +22,6 @@ #include "osdep/keycodes.h" -extern void mplayer_put_key(int code); - //Cocoa MPlayerOpenGLView *mpGLView; NSAutoreleasePool *autoreleasepool; @@ -297,8 +295,7 @@ //create window window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, frame.size.width, frame.size.height) styleMask:NSTitledWindowMask|NSTexturedBackgroundWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask - backing:NSBackingStoreBuffered - defer:NO]; + backing:NSBackingStoreBuffered defer:NO]; [window setDelegate:self]; [window setContentView:self]; @@ -308,18 +305,13 @@ [window center]; [window makeKeyAndOrderFront:self]; + [self setOpenGLContext:glContext]; - [[self openGLContext] setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; + [glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval]; [glContext setView:self]; [glContext makeCurrentContext]; - error = CVPixelBufferCreateWithBytes( NULL, - image_width, image_height, - pixelFormat, - image_data, - image_width*image_bytes, - NULL, NULL, NULL, - ¤tFrameBuffer); + error = CVPixelBufferCreateWithBytes( NULL, image_width, image_height, pixelFormat, image_data, image_width*image_bytes, NULL, NULL, NULL, ¤tFrameBuffer); if(error != kCVReturnSuccess) mp_msg(MSGT_VO, MSGL_ERR,"Failed to create Pixel Buffer(%d)\n", error);