]> git.sesse.net Git - vlc/commitdiff
dvdnav: switch to the activated color sooner
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 21 Aug 2008 20:54:19 +0000 (22:54 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 21 Aug 2008 20:56:35 +0000 (22:56 +0200)
Switch to active button color before making the actual activation. This gives us a small chance to actually SEE the button be activated before the menu continues.

modules/access/dvdnav.c

index 8554ac1bedd8cba75c04c7c7eab6ac71bb511986..46e66abdeb45f82f0d011a62e3d8392eeea2717c 100644 (file)
@@ -1272,8 +1272,8 @@ static void* EventThread( vlc_object_t *p_this )
                 break;
             case ACTIONID_NAV_ACTIVATE:
                 b_activated = true;
-                dvdnav_button_activate( p_sys->dvdnav, pci );
                 ButtonUpdate( p_ev->p_demux, true );
+                dvdnav_button_activate( p_sys->dvdnav, pci );
                 break;
             default:
                 break;
@@ -1300,9 +1300,9 @@ static void* EventThread( vlc_object_t *p_this )
             if( p_ev->b_clicked )
             {
                 b_activated = true;
+                ButtonUpdate( p_ev->p_demux, true );
                 dvdnav_mouse_activate( p_sys->dvdnav, pci, valx.i_int,
                                        valy.i_int );
-                ButtonUpdate( p_ev->p_demux, true );
             }
 
             p_ev->b_moved = false;