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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24183 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-08-25 16:15:46 +00:00
parent 11dbdc22db
commit 2c57acb279
1 changed files with 1 additions and 1 deletions

View File

@ -2744,8 +2744,8 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy); rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy);
#ifdef USE_DVDNAV #ifdef USE_DVDNAV
if (mpctx->stream->type == STREAMTYPE_DVDNAV if (mpctx->stream->type == STREAMTYPE_DVDNAV
int button = -1;
&& dx > 0.0 && dy > 0.0) { && dx > 0.0 && dy > 0.0) {
int button = -1;
pointer_x = (int) (dx * (double) sh_video->disp_w); pointer_x = (int) (dx * (double) sh_video->disp_w);
pointer_y = (int) (dy * (double) sh_video->disp_h); pointer_y = (int) (dy * (double) sh_video->disp_h);
mp_dvdnav_update_mouse_pos(mpctx->stream, mp_dvdnav_update_mouse_pos(mpctx->stream,