# HG changeset patch # User diego # Date 1188058546 0 # Node ID ca9f239aaeab4c836ae052486cb88c9686cea66c # Parent 05a5af844c6950021af1bfa0a0b0c941923278af Extract a poor int declaration from within the uncouth grip of an if statement where it lay stranded in violation of both syntax and decency. diff -r 05a5af844c69 -r ca9f239aaeab command.c --- a/command.c Sat Aug 25 16:03:02 2007 +0000 +++ b/command.c Sat Aug 25 16:15:46 2007 +0000 @@ -2744,8 +2744,8 @@ rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy); #ifdef USE_DVDNAV if (mpctx->stream->type == STREAMTYPE_DVDNAV + && dx > 0.0 && dy > 0.0) { 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); mp_dvdnav_update_mouse_pos(mpctx->stream,