diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-07-19 20:51:48 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-07-19 20:51:48 +0000 |
commit | d05326c4bc7d26fbcf1c52a94f900a704026fc2a (patch) | |
tree | 90b1b5ee08f6805f7c6487c2ccc66db7ad92dbb9 /Gui/mplayer/mw.h | |
parent | bcba526d135c6fcab681212569f440877f4c50ec (diff) | |
download | mpv-d05326c4bc7d26fbcf1c52a94f900a704026fc2a.tar.bz2 mpv-d05326c4bc7d26fbcf1c52a94f900a704026fc2a.tar.xz |
- fix audio equalizer
- rewrite video equalizer handling (i teszted with mga g400 [x]mga,xv,xvidix and radeon xv,xvidix )
- fix some small gtk bug
- i dunno, i don't remember ... :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6756 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/mw.h')
-rw-r--r-- | Gui/mplayer/mw.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Gui/mplayer/mw.h b/Gui/mplayer/mw.h index cfc31dd8d8..37b1dff261 100644 --- a/Gui/mplayer/mw.h +++ b/Gui/mplayer/mw.h @@ -192,7 +192,11 @@ void mplMainDraw( wsParamDisplay ) image=fntRender( item->fontid,0,item->width,"%s",item->label ); goto drawrenderedtext; case itDLabel: - image=fntRender( item->fontid,mplTimer%item->width,item->width,"%s",Translate( item->label ) ); + { + char * t = Translate( item->label ); + int l = fntTextWidth( item->fontid,t ); + image=fntRender( item->fontid,mplTimer%(l?l:item->width),item->width,"%s",t ); + } drawrenderedtext: if ( image ) { @@ -499,6 +503,7 @@ void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY ) switch ( Button ) { case wsPMMouseButton: + gtkShow( evHidePopUpMenu,NULL ); mplShowMenu( RX,RY ); itemtype=itPRMButton; break; @@ -507,6 +512,7 @@ void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY ) break; case wsPLMouseButton: + gtkShow( evHidePopUpMenu,NULL ); sx=X; sy=Y; boxMoved=1; itemtype=itPLMButton; // if move the main window SelectedItem=currentselected; if ( SelectedItem == -1 ) break; // yeees, i'm move the fucking window |