# HG changeset patch # User diego # Date 1188046061 0 # Node ID 2ae4c179ea2585c896724295d7476bac703aafee # Parent 35fcce39b121db0af4e081db07a06f4aa8269ff5 Fix unused variable warning when USE_DVDNAV is not defined. diff -r 35fcce39b121 -r 2ae4c179ea25 command.c --- a/command.c Sat Aug 25 12:25:34 2007 +0000 +++ b/command.c Sat Aug 25 12:47:41 2007 +0000 @@ -2736,12 +2736,13 @@ break; case MP_CMD_SET_MOUSE_POS:{ - int button = -1, pointer_x, pointer_y; + int pointer_x, pointer_y; double dx, dy; pointer_x = cmd->args[0].v.i; 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 && dx > 0.0 && dy > 0.0) { pointer_x = (int) (dx * (double) sh_video->disp_w);