Search
lxdream.org :: lxdream/src/drivers/video_osx.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_osx.c
changeset 736:a02d1475ccfd
prev700:4650d0c7f6f9
next770:429ff505c450
author nkeynes
date Mon Jul 14 07:44:42 2008 +0000 (14 years ago)
permissions -rw-r--r--
last change Re-indent everything consistently
Fix include guards for consistency as well
file annotate diff log raw
1.1 --- a/src/drivers/video_osx.c Sun Jun 22 06:49:00 2008 +0000
1.2 +++ b/src/drivers/video_osx.c Mon Jul 14 07:44:42 2008 +0000
1.3 @@ -81,15 +81,15 @@
1.4 }
1.5 - (BOOL)isOpaque
1.6 {
1.7 - return YES;
1.8 + return YES;
1.9 }
1.10 - (BOOL)acceptsFirstResponder
1.11 {
1.12 - return YES;
1.13 + return YES;
1.14 }
1.15 - (BOOL)isFlipped
1.16 {
1.17 - return YES;
1.18 + return YES;
1.19 }
1.20 //--------------------------------------------------------------------
1.21 - (void)drawRect: (NSRect) rect
1.22 @@ -122,7 +122,7 @@
1.23 CGAssociateMouseAndMouseCursorPosition(YES);
1.24 [((LxdreamMainWindow *)[self window]) setIsGrabbed: NO];
1.25 }
1.26 -
1.27 +
1.28 if( flagsMask[keycode] == 0 ) {
1.29 input_event_keydown( NULL, keycode+1, 1 );
1.30 flagsMask[keycode] = 1;
1.31 @@ -206,14 +206,14 @@
1.32
1.33 static gboolean video_osx_init()
1.34 {
1.35 - if( video_view == NULL ) {
1.36 - return FALSE;
1.37 - }
1.38 - if( !video_nsgl_init_driver(video_view, &display_osx_driver) ) {
1.39 - return FALSE;
1.40 - }
1.41 - pvr2_setup_gl_context();
1.42 - return TRUE;
1.43 + if( video_view == NULL ) {
1.44 + return FALSE;
1.45 + }
1.46 + if( !video_nsgl_init_driver(video_view, &display_osx_driver) ) {
1.47 + return FALSE;
1.48 + }
1.49 + pvr2_setup_gl_context();
1.50 + return TRUE;
1.51 }
1.52
1.53 static void video_osx_shutdown()
.