[vlc-devel] commit: vout_SDL: fix a warning (Jean-Baptiste Kempf )
git version control
git at videolan.org
Tue Sep 1 14:11:47 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Sep 1 14:11:23 2009 +0200| [f3ad481e8866164ec8b7b3e3f77331d186a791ba] | committer: Jean-Baptiste Kempf
vout_SDL: fix a warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3ad481e8866164ec8b7b3e3f77331d186a791ba
---
modules/video_output/sdl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/sdl.c b/modules/video_output/sdl.c
index 3754ae9..a886daf 100644
--- a/modules/video_output/sdl.c
+++ b/modules/video_output/sdl.c
@@ -650,8 +650,8 @@ static void Manage(vout_display_t *vd)
const int y = (int64_t)(event.motion.y - sys->place.y) * vd->source.i_height / sys->place.height;
SDL_ShowCursor(1);
- if (x >= 0 && x < vd->source.i_width &&
- y >= 0 && y < vd->source.i_height)
+ if (x >= 0 && (unsigned)x < vd->source.i_width &&
+ y >= 0 && (unsigned)y < vd->source.i_height)
vout_display_SendEventMouseMoved(vd, x, y);
break;
}
More information about the vlc-devel
mailing list