Skip to content

Commit

Permalink
Wrong check for minimum mouse position
Browse files Browse the repository at this point in the history
  • Loading branch information
pmandin committed Aug 10, 2004
1 parent 154ff24 commit 7aa7865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/gem/SDL_gemevents.c
Expand Up @@ -321,10 +321,10 @@ static void do_mouse(_THIS, short mx, short my, short mb, short ks)

/* 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);
Expand Down

0 comments on commit 7aa7865

Please sign in to comment.