Mercurial > mplayer.hg
comparison command.c @ 24154:09006821e9d7
Move button variable into the if () where it is actually used.
author | diego |
---|---|
date | Sat, 25 Aug 2007 13:08:49 +0000 |
parents | 2ae4c179ea25 |
children | 05a5af844c69 |
comparison
equal
deleted
inserted
replaced
24153:0bbfebce0583 | 24154:09006821e9d7 |
---|---|
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; | |
2746 if (mpctx->stream->type == STREAMTYPE_DVDNAV | 2745 if (mpctx->stream->type == STREAMTYPE_DVDNAV |
2746 int button = -1; | |
2747 && dx > 0.0 && dy > 0.0) { | 2747 && dx > 0.0 && dy > 0.0) { |
2748 pointer_x = (int) (dx * (double) sh_video->disp_w); | 2748 pointer_x = (int) (dx * (double) sh_video->disp_w); |
2749 pointer_y = (int) (dy * (double) sh_video->disp_h); | 2749 pointer_y = (int) (dy * (double) sh_video->disp_h); |
2750 mp_dvdnav_update_mouse_pos(mpctx->stream, | 2750 mp_dvdnav_update_mouse_pos(mpctx->stream, |
2751 pointer_x, pointer_y, &button); | 2751 pointer_x, pointer_y, &button); |