Mercurial > mplayer.hg
changeset 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 | 0bbfebce0583 |
children | 4b0528fe0ffd |
files | command.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/command.c Sat Aug 25 13:05:07 2007 +0000 +++ b/command.c Sat Aug 25 13:08:49 2007 +0000 @@ -2742,8 +2742,8 @@ pointer_y = cmd->args[1].v.i; rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy); #ifdef USE_DVDNAV - int button = -1; if (mpctx->stream->type == STREAMTYPE_DVDNAV + int button = -1; && dx > 0.0 && dy > 0.0) { pointer_x = (int) (dx * (double) sh_video->disp_w); pointer_y = (int) (dy * (double) sh_video->disp_h);