Mercurial > mplayer.hg
diff mplayer.c @ 19851:adfd08588514
report mouse coordinates after movement to dvdnav; this permits to enable button selection using the mouse; patch by Jonas Jermann and me
author | nicodvb |
---|---|
date | Sat, 16 Sep 2006 15:25:31 +0000 |
parents | 4919b3ce8d5e |
children | b6aa47caeb72 |
line wrap: on
line diff
--- a/mplayer.c Sat Sep 16 15:13:41 2006 +0000 +++ b/mplayer.c Sat Sep 16 15:25:31 2006 +0000 @@ -5157,6 +5157,13 @@ 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