]> git.sesse.net Git - vlc/commitdiff
. Arranged a few things
authorPierre Baillet <octplane@videolan.org>
Tue, 29 Aug 2000 00:03:21 +0000 (00:03 +0000)
committerPierre Baillet <octplane@videolan.org>
Tue, 29 Aug 2000 00:03:21 +0000 (00:03 +0000)
... still dirty, but the earthquake is coming...

plugins/sdl/intf_sdl.c
src/video_output/video_output.c

index 9c68558cd82b0618b873a60e451688227b0d32ca..fde64b8e137da2821f5afb118d9a7c19230352dc 100644 (file)
@@ -56,7 +56,7 @@ typedef struct intf_sys_s
 {
     /* SDL system information */
     SDL_Surface * p_display;
-    int isFullscreen;  
+    boolean_t b_Fullscreen;    
 } intf_sys_t;
 
 typedef struct vout_sys_s
@@ -181,7 +181,7 @@ void intf_SDL_Fullscreen(intf_thread_t * p_intf)
 {
     SDL_FreeSurface( p_intf->p_vout->p_sys->p_display );
     
-    if(p_intf->p_sys->isFullscreen == 1)
+    if(p_intf->p_sys->b_Fullscreen == 0)
     {
         p_intf->p_vout->p_sys->p_display = 
                 SDL_SetVideoMode(
@@ -191,7 +191,7 @@ void intf_SDL_Fullscreen(intf_thread_t * p_intf)
                                  SDL_ANYFORMAT |
                                  SDL_HWSURFACE |
                                  SDL_DOUBLEBUF);
-        p_intf->p_sys->isFullscreen = 0;
+        p_intf->p_sys->b_Fullscreen = 1;
     }
     else
     {
@@ -204,7 +204,7 @@ void intf_SDL_Fullscreen(intf_thread_t * p_intf)
                                  SDL_HWSURFACE |
                                  SDL_DOUBLEBUF |
                                  SDL_FULLSCREEN );
-        p_intf->p_sys->isFullscreen = 1;                        
+        p_intf->p_sys->b_Fullscreen = 0;                        
     }
     SDL_EventState(SDL_KEYUP , SDL_IGNORE);
     p_intf->p_vout->p_sys->p_buffer[ 0 ] = p_intf->p_vout->p_sys->p_display->pixels;
index 3e519e66d1419605b6bc28235215c609920c7843..d9d667fbadbada81315de6eb8bf191aecdc9a10b 100644 (file)
@@ -167,7 +167,6 @@ vout_thread_t * vout_CreateThread   ( char *psz_display, int i_root_window,
                  p_vout->i_bytes_per_pixel * 8, p_vout->i_bytes_per_line );
 
     /* Initialize idle screen */
-    p_vout->last_display_date   = mdate();
     p_vout->last_display_date   = 0;
     p_vout->last_idle_date      = 0;
 
@@ -930,8 +929,6 @@ static int InitThread( vout_thread_t *p_vout )
     /* Mark thread as running and return */
     p_vout->b_active =          1;
     *p_vout->pi_status =        THREAD_READY;
-    /* cheats the clock so that the display come as soon as the thread is run */
-    p_vout->last_display_date = mdate()-5000000;
 
     
     intf_DbgMsg("thread ready\n");
@@ -1766,20 +1763,20 @@ static int RenderIdle( vout_thread_t *p_vout )
                        &i_width, &i_height );
         if( !Align( p_vout, &i_x, &i_y, i_width, i_height, CENTER_RALIGN, CENTER_RALIGN ) )
         {
-            i_amount = (int) ((current_date - p_vout->last_display_date- VOUT_IDLE_DELAY) / 5000LL);            
+            i_amount = (int) ((current_date - p_vout->last_display_date ) / 5000LL);            
             vout_Print( p_vout->p_large_font,
                         p_vout->p_buffer[ p_vout->i_buffer_index ].p_data +
                         i_x * p_vout->i_bytes_per_pixel + i_y * p_vout->i_bytes_per_line,
                         p_vout->i_bytes_per_pixel, p_vout->i_bytes_per_line,
                         p_vout->i_white_pixel, p_vout->i_gray_pixel, 0,
-                        WIDE_TEXT | OUTLINED_TEXT, psz_text,  i_amount );
+                        WIDE_TEXT | OUTLINED_TEXT, psz_text,  (i_amount / 10 ) %100);
 
             vout_Print( p_vout->p_large_font,
                     p_vout->p_buffer[ p_vout->i_buffer_index ].p_data +
                     i_x * p_vout->i_bytes_per_pixel + (i_y + 16) * p_vout->i_bytes_per_line,
                     p_vout->i_bytes_per_pixel, p_vout->i_bytes_per_line,
                     p_vout->i_white_pixel, p_vout->i_gray_pixel, 0,
-                    WIDE_TEXT | OUTLINED_TEXT, psz_wtext,  (i_amount/2)%110 );
+                    WIDE_TEXT | OUTLINED_TEXT, psz_wtext,  (i_amount/30)%110 );
             
 
             SetBufferArea( p_vout, i_x, i_y, i_width, i_height + 16 );