[Mplayer-cvslog] CVS: main/Gui/mplayer mw.c,1.102,1.103

Zoltan Ponekker pontscho at mplayerhq.hu
Sat Jan 11 02:30:10 CET 2003


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv1689/mplayer

Modified Files:
	mw.c 
Log Message:


- new font render finished
- fix 'l' button (evLoad changed to evLoadPlay)


Index: mw.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.c,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -r1.102 -r1.103
--- mw.c	9 Jan 2003 20:53:01 -0000	1.102
+++ mw.c	11 Jan 2003 01:30:07 -0000	1.103
@@ -219,20 +219,14 @@
             break;
        case itSLabel:
             image=fntRender( item,0,"%s",item->label );
-            goto drawrenderedtext;
+            if ( image ) PutImage( image,item->x,item->y,1,0 );
        case itDLabel:
             {
 	     char * t = Translate( item->label );
 	     int    l = fntTextWidth( item->fontid,t );
              image=fntRender( item,(GetTimerMS() / 20)%(l?l:item->width),"%s",t );
 	    }
-drawrenderedtext:
-            if ( image )
-             {
-              PutImage( image,item->x,item->y,1,0 );
-              if ( image->Image ) free( image->Image );
-              free( image );
-             }
+            if ( image ) PutImage( image,item->x,item->y,1,0 );
             break;
       }
     }



More information about the MPlayer-cvslog mailing list