Commit beeb3936 authored by Patrice Mandin's avatar Patrice Mandin

Wrong check for minimum mouse position

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40928
parent aab65909
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment