summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-29 21:38:23 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-29 21:38:23 +0000
commit4c1fa58fbcf882a1b3f76a5308a2d5ce0ca7bbbe (patch)
tree53807b43081e8f96f55e7bfdd76adda71b1938be /command.c
parent1dc1db13a1c686c51cc9caea9388a8f8a0931b53 (diff)
downloadmpv-4c1fa58fbcf882a1b3f76a5308a2d5ce0ca7bbbe.tar.bz2
mpv-4c1fa58fbcf882a1b3f76a5308a2d5ce0ca7bbbe.tar.xz
show dvdnav selection in the OSD only when the osd_level>1; patch by foxcore gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25915 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index c8facfbf8e..7267782361 100644
--- a/command.c
+++ b/command.c
@@ -3098,7 +3098,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
pointer_y = (int) (dy * (double) sh_video->disp_h);
mp_dvdnav_update_mouse_pos(mpctx->stream,
pointer_x, pointer_y, &button);
- if (button > 0)
+ if (osd_level > 1 && button > 0)
set_osd_msg(OSD_MSG_TEXT, 1, osd_duration,
"Selected button number %d", button);
}
@@ -3117,7 +3117,7 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
break;
mp_dvdnav_handle_input(mpctx->stream,cmd->args[0].v.i,&button);
- if (button > 0)
+ if (osd_level > 1 && button > 0)
set_osd_msg(OSD_MSG_TEXT, 1, osd_duration,
"Selected button number %d", button);
}