summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 2e906cfbb5..50f5ebfe4d 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -5157,6 +5157,13 @@ if(step_sec>0) {
pointer_x = cmd->args[0].v.i;
pointer_y = cmd->args[1].v.i;
rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy);
+#ifdef USE_DVDNAV
+ if(stream->type == STREAMTYPE_DVDNAV && dx > 0.0 && dy > 0.0) {
+ pointer_x = (int) (dx * (double) sh_video->disp_w);
+ pointer_y = (int) (dy * (double) sh_video->disp_h);
+ mp_dvdnav_update_mouse_pos(stream, pointer_x, pointer_y, &button);
+ }
+#endif
break;
}
#ifdef USE_DVDNAV