]> git.sesse.net Git - vlc/commitdiff
* modules/gui/macosx/playlist.m: 10.1 is archaic. i don't know why i bother ;)
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 29 Jun 2003 00:14:50 +0000 (00:14 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 29 Jun 2003 00:14:50 +0000 (00:14 +0000)
  finally fixed, confirmed etc.
* doc/fortunes.txt: one more

doc/fortunes.txt
modules/gui/macosx/playlist.m

index 4da954f4f6c00c96d9ada651ad0f4584e00550c0..9b703a7132702a0386980327543584b62e7b5d51 100644 (file)
@@ -490,3 +490,9 @@ the Boston strangler is to the woman home alone.
 
   -- #videolan
 %
+17:07 < JediMaster> sh-2.03# reboot
+17:07 < JediMaster> Segmentation fault
+17:07 < JediMaster> that's not good
+
+  -- #videolan
+%
index 33f0088c01bf0708db32efece0d5a62d72c79f73..0d6cdc04f6e8b5fcf0de845df5e9ffb4334f637a 100644 (file)
@@ -2,7 +2,7 @@
  * playlist.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: playlist.m,v 1.25 2003/06/02 12:42:15 hartman Exp $
+ * $Id: playlist.m,v 1.26 2003/06/29 00:14:50 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Derk-Jan Hartman <thedj@users.sourceforge.net>
 #include <stdlib.h>                                      /* malloc(), free() */
 #include <sys/param.h>                                    /* for MAXPATHLEN */
 #include <string.h>
+#include <math.h>
 
 #include "intf.h"
 #include "playlist.h"
 
+int MacVersion102 = -1;
+
 /*****************************************************************************
  * VLCPlaylistView implementation 
  *****************************************************************************/
     o_new_rect.size.height = f_height;
     o_new_rect.origin.x = o_rect.origin.x;
     o_new_rect.origin.y = i_row * f_height;
-    
-    if ( o_striped_row_color == nil )
+   
+    if( ( MacVersion102 < 0 ) && ( floor( NSAppKitVersionNumber ) > NSAppKitVersionNumber10_1 ) )
+    {
+        MacVersion102 = 102;
+    }
+    if ( MacVersion102 == 102 && o_striped_row_color == nil )
     {
         o_striped_row_color = [[[NSColor alternateSelectedControlColor]
                                 highlightWithLevel: 0.90] retain];
         
-        if ( o_striped_row_color == nil )
-        {
-            /* OSX 10.1 and before ain't that smart ;) */
-            o_striped_row_color = [[NSColor whiteColor] retain];
-        }
     }
+    else if ( o_striped_row_color == nil )
+    {
+        /* OSX 10.1 and before ain't that smart ;) */
+        o_striped_row_color = [[NSColor whiteColor] retain];
+    }
+
     [o_striped_row_color set];
     
     while ( o_new_rect.origin.y < f_origin_y ) {