diff Gui/mplayer/menu.c @ 10194:2608bf0037b6

From: Ben Low <ben@bdlow.net> [PATCH] xineramascreen for gmplayer (the right way)
author pontscho
date Mon, 26 May 2003 08:45:43 +0000
parents d07ab8e088a9
children 0e1471d9da74
line wrap: on
line diff
--- a/Gui/mplayer/menu.c	Mon May 26 08:34:17 2003 +0000
+++ b/Gui/mplayer/menu.c	Mon May 26 08:45:43 2003 +0000
@@ -82,9 +82,9 @@
  if ( !appMPlayer.menuIsPresent || !appMPlayer.menuBase.Bitmap.Image ) return;
 
  x=mx;
- if ( x + appMPlayer.menuWindow.Width > wsMaxX ) x=wsMaxX - appMPlayer.menuWindow.Width - 1;
+ if ( x + appMPlayer.menuWindow.Width > wsMaxX ) x=wsMaxX - appMPlayer.menuWindow.Width - 1 + wsOrgX;
  y=my;
- if ( y + appMPlayer.menuWindow.Height > wsMaxY ) y=wsMaxY - appMPlayer.menuWindow.Height - 1;
+ if ( y + appMPlayer.menuWindow.Height > wsMaxY ) y=wsMaxY - appMPlayer.menuWindow.Height - 1 + wsOrgY;
 
  mplMenuX=x; mplMenuY=y;