]> git.sesse.net Git - vlc/commitdiff
* increased accuracy of positionslider in OSX. although this will not solve
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 19 Feb 2003 14:49:25 +0000 (14:49 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 19 Feb 2003 14:49:25 +0000 (14:49 +0000)
  all problems this will improve results a bit (by my own experience).

extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
modules/gui/macosx/intf.m

index 07f5e2768e5e7a0f705406063eccbdd6e8438b9e..51909c82802f5dccdb4c65105030be41a0360856 100644 (file)
@@ -24,7 +24,7 @@
        <key>IBOpenObjects</key>
        <array>
                <integer>29</integer>
-               <integer>1194</integer>
+               <integer>21</integer>
        </array>
        <key>IBSystem Version</key>
        <string>6I32</string>
index a911bcdbf3266cdeeb78fbc09879cfe2e947c1cb..16c2490eac5c84c75aa07976a05757c2bd60ec9a 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib differ
index 0b6b9208dcc52fdd9afc9135c8a36dc855d4a5ea..6554e6fcee34801e7fea180064eb59e954549fce 100644 (file)
@@ -2,7 +2,7 @@
  * intf.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.59 2003/02/18 00:17:06 massiot Exp $
+ * $Id: intf.m,v 1.60 2003/02/19 14:49:25 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -725,7 +725,7 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
         {
             if( f_slider == f_slider_old )
             {
-                float f_updated = ( 100. * p_area->i_tell ) /
+                float f_updated = ( 10000. * p_area->i_tell ) /
                                            p_area->i_size;
 
                 if( f_slider != f_updated )
@@ -735,7 +735,7 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
             }
             else
             {
-                off_t i_seek = ( f_slider * p_area->i_size ) / 100;
+                off_t i_seek = ( f_slider * p_area->i_size ) / 10000;
 
                 /* release the lock to be able to seek */
                 vlc_mutex_unlock( &p_input->stream.stream_lock );
@@ -1409,7 +1409,7 @@ int ExecuteOnMainThread( id target, SEL sel, void * p_arg )
 
 #define p_area p_playlist->p_input->stream.p_selected_area
         vlc_mutex_lock( &p_playlist->p_input->stream.stream_lock );
-        i_tell = f_updated / 100. * p_area->i_size;
+        i_tell = f_updated / 10000. * p_area->i_size;
         input_OffsetToTime( p_playlist->p_input, psz_time, i_tell );
         vlc_mutex_unlock( &p_playlist->p_input->stream.stream_lock );
 #undef p_area