# HG changeset patch # User Patrice Mandin # Date 1092164398 0 # Node ID c5689bd09eaa03f81377aae823c77118639e2c61 # Parent 83db694556eb3febbd3cdf1bbee93d236874768f Wrong check for minimum mouse position diff -r 83db694556eb -r c5689bd09eaa src/video/gem/SDL_gemevents.c --- a/src/video/gem/SDL_gemevents.c Tue Aug 10 18:53:38 2004 +0000 +++ b/src/video/gem/SDL_gemevents.c Tue Aug 10 18:59:58 2004 +0000 @@ -321,10 +321,10 @@ /* Give mouse position relative to window position */ posx = mx - x2; - if (posx<0) posx = x2; + if (posx<0) posx = 0; if (posx>w2) posx = w2-1; posy = my - y2; - if (posy<0) posy = y2; + if (posy<0) posy = 0; if (posy>h2) posy = h2-1; SDL_PrivateMouseMotion(0, 0, posx, posy);