Mercurial > mplayer.hg
comparison command.c @ 24150:2ae4c179ea25
Fix unused variable warning when USE_DVDNAV is not defined.
| author | diego |
|---|---|
| date | Sat, 25 Aug 2007 12:47:41 +0000 |
| parents | 9e71e0345c35 |
| children | 09006821e9d7 |
comparison
equal
deleted
inserted
replaced
| 24149:35fcce39b121 | 24150:2ae4c179ea25 |
|---|---|
| 2734 break; | 2734 break; |
| 2735 } | 2735 } |
| 2736 break; | 2736 break; |
| 2737 | 2737 |
| 2738 case MP_CMD_SET_MOUSE_POS:{ | 2738 case MP_CMD_SET_MOUSE_POS:{ |
| 2739 int button = -1, pointer_x, pointer_y; | 2739 int pointer_x, pointer_y; |
| 2740 double dx, dy; | 2740 double dx, dy; |
| 2741 pointer_x = cmd->args[0].v.i; | 2741 pointer_x = cmd->args[0].v.i; |
| 2742 pointer_y = cmd->args[1].v.i; | 2742 pointer_y = cmd->args[1].v.i; |
| 2743 rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy); | 2743 rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy); |
| 2744 #ifdef USE_DVDNAV | 2744 #ifdef USE_DVDNAV |
| 2745 int button = -1; | |
| 2745 if (mpctx->stream->type == STREAMTYPE_DVDNAV | 2746 if (mpctx->stream->type == STREAMTYPE_DVDNAV |
| 2746 && dx > 0.0 && dy > 0.0) { | 2747 && dx > 0.0 && dy > 0.0) { |
| 2747 pointer_x = (int) (dx * (double) sh_video->disp_w); | 2748 pointer_x = (int) (dx * (double) sh_video->disp_w); |
| 2748 pointer_y = (int) (dy * (double) sh_video->disp_h); | 2749 pointer_y = (int) (dy * (double) sh_video->disp_h); |
| 2749 mp_dvdnav_update_mouse_pos(mpctx->stream, | 2750 mp_dvdnav_update_mouse_pos(mpctx->stream, |
