]> git.sesse.net Git - vlc/commitdiff
macosx: slightly change scrolling behavior of the credits to the way we do it in...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 30 Aug 2009 01:15:34 +0000 (03:15 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 30 Aug 2009 01:15:49 +0000 (03:15 +0200)
Basically, we starting scrolling at the beginning, if the window gets reopened and jump back to top once scrolling reached the end of the list.

modules/gui/macosx/about.m

index dc0ef540d7745ef432cf48cc9c48c0384e37c34a..03bbc0466ca095a98c699317c417ca22737877bd 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * about.m: MacOS X About Panel
  *****************************************************************************
- * Copyright (C) 2001-2007 the VideoLAN team
+ * Copyright (C) 2001-2009 the VideoLAN team
  * $Id$
  *
  * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
@@ -112,6 +112,7 @@ static VLAboutBox *_o_sharedInstance = nil;
  
     /* Show the window */
     b_restart = YES;
+    [o_credits_textview scrollPoint:NSMakePoint( 0, 0 )];
     [o_about_window makeKeyAndOrderFront: nil];
 }
 
@@ -134,7 +135,7 @@ static VLAboutBox *_o_sharedInstance = nil;
     if( b_restart )
     {
         /* Reset the starttime */
-        i_start = [NSDate timeIntervalSinceReferenceDate] + 3.0;
+        i_start = [NSDate timeIntervalSinceReferenceDate] + 5.0;
         f_current = 0;
         f_end = [o_credits_textview bounds].size.height - [o_credits_scrollview bounds].size.height;
         b_restart = NO;
@@ -151,6 +152,7 @@ static VLAboutBox *_o_sharedInstance = nil;
         /* If at end, restart at the top */
         if( f_current >= f_end )
         {
+            [o_credits_textview scrollPoint:NSMakePoint( 0, 0 )];
             b_restart = YES;
         }
     }