Commit 4b348120 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* modules/gui/macosx/playlist.m: 10.1 is archaic. i don't know why i bother ;)

  finally fixed, confirmed etc.
* doc/fortunes.txt: one more
parent a1b500a0
...@@ -490,3 +490,9 @@ the Boston strangler is to the woman home alone. ...@@ -490,3 +490,9 @@ the Boston strangler is to the woman home alone.
-- #videolan -- #videolan
% %
17:07 < JediMaster> sh-2.03# reboot
17:07 < JediMaster> Segmentation fault
17:07 < JediMaster> that's not good
-- #videolan
%
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.m: MacOS X interface plugin * playlist.m: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * 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> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Derk-Jan Hartman <thedj@users.sourceforge.net> * Derk-Jan Hartman <thedj@users.sourceforge.net>
...@@ -28,10 +28,13 @@ ...@@ -28,10 +28,13 @@
#include <stdlib.h> /* malloc(), free() */ #include <stdlib.h> /* malloc(), free() */
#include <sys/param.h> /* for MAXPATHLEN */ #include <sys/param.h> /* for MAXPATHLEN */
#include <string.h> #include <string.h>
#include <math.h>
#include "intf.h" #include "intf.h"
#include "playlist.h" #include "playlist.h"
int MacVersion102 = -1;
/***************************************************************************** /*****************************************************************************
* VLCPlaylistView implementation * VLCPlaylistView implementation
*****************************************************************************/ *****************************************************************************/
...@@ -127,17 +130,23 @@ ...@@ -127,17 +130,23 @@
o_new_rect.origin.x = o_rect.origin.x; o_new_rect.origin.x = o_rect.origin.x;
o_new_rect.origin.y = i_row * f_height; 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] o_striped_row_color = [[[NSColor alternateSelectedControlColor]
highlightWithLevel: 0.90] retain]; highlightWithLevel: 0.90] retain];
if ( o_striped_row_color == nil ) }
else if ( o_striped_row_color == nil )
{ {
/* OSX 10.1 and before ain't that smart ;) */ /* OSX 10.1 and before ain't that smart ;) */
o_striped_row_color = [[NSColor whiteColor] retain]; o_striped_row_color = [[NSColor whiteColor] retain];
} }
}
[o_striped_row_color set]; [o_striped_row_color set];
while ( o_new_rect.origin.y < f_origin_y ) { while ( o_new_rect.origin.y < f_origin_y ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment