changeset 24163:ca9f239aaeab

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.
author diego
date Sat, 25 Aug 2007 16:15:46 +0000
parents 05a5af844c69
children 7fd3fe2b7ab7
files command.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,