summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/menu.h
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-01 17:53:07 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-01 17:53:07 +0000
commit8d3a4273784f383298d0f43d673eb8d97986379c (patch)
tree2160452c57b4fe1a1b03997d51c414ace52db69d /Gui/mplayer/menu.h
parent5c21ed495f4be9f9425535967885a6ce5c302c9a (diff)
downloadmpv-8d3a4273784f383298d0f43d673eb8d97986379c.tar.bz2
mpv-8d3a4273784f383298d0f43d673eb8d97986379c.tar.xz
fix some bug.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1824 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/menu.h')
-rw-r--r--Gui/mplayer/menu.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Gui/mplayer/menu.h b/Gui/mplayer/menu.h
index 81d776db6b..78e21acddf 100644
--- a/Gui/mplayer/menu.h
+++ b/Gui/mplayer/menu.h
@@ -55,11 +55,11 @@ void mplMenuMouseHandle( int X,int Y,int RX,int RY )
return;
}
- for( i=0;i<appMPlayer.NumberOfMenuItems+1;i++ )
+ for( i=0;i<=appMPlayer.NumberOfMenuItems;i++ )
{
if ( wgIsRect( x,y,
appMPlayer.MenuItems[i].x,appMPlayer.MenuItems[i].y,
- appMPlayer.MenuItems[i].x+appMPlayer.MenuItems[i].width,appMPlayer.MenuItems[i].y+appMPlayer.MenuItems[i].height ) ) mplMenuItem=i;
+ appMPlayer.MenuItems[i].x+appMPlayer.MenuItems[i].width,appMPlayer.MenuItems[i].y+appMPlayer.MenuItems[i].height ) ) { mplMenuItem=i; break; }
}
wsPostRedisplay( &appMPlayer.menuWindow );
}
@@ -92,11 +92,15 @@ void mplHideMenu( int mx,int my )
x=mx-mplMenuX;
y=my-mplMenuY;
+// x=RX - appMPlayer.menuWindow.X;
+// y=RY - appMPlayer.menuWindow.Y;
wsVisibleWindow( &appMPlayer.menuWindow,wsHideWindow );
if ( ( x < 0 ) || ( y < 0 ) ) return;
+ printf( "---------> %d %d,%d\n",i,x,y );
+ printf( "--------> mi: %d,%d %dx%d\n",appMPlayer.MenuItems[i].x,appMPlayer.MenuItems[i].y,appMPlayer.MenuItems[i].width,appMPlayer.MenuItems[i].height );
if ( wgIsRect( x,y,
appMPlayer.MenuItems[i].x,appMPlayer.MenuItems[i].y,
appMPlayer.MenuItems[i].x+appMPlayer.MenuItems[i].width,