comparison src/video/vgl/SDL_vglmouse.c @ 527:5c74ac147358

Fixed mouse warp position bug with offset video modes
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Oct 2002 08:09:26 +0000
parents e8157fcb3114
children c9b51268668f
comparison
equal deleted inserted replaced
526:4314a501d7be 527:5c74ac147358
56 return(0); 56 return(0);
57 } 57 }
58 58
59 void VGL_WarpWMCursor(_THIS, Uint16 x, Uint16 y) 59 void VGL_WarpWMCursor(_THIS, Uint16 x, Uint16 y)
60 { 60 {
61 x += (this->screen->offset % this->screen->pitch) /
62 this->screen->format->BytesPerPixel;
63 y += (this->screen->offset / this->screen->pitch);
64 SDL_PrivateMouseMotion(0, 0, x, y); 61 SDL_PrivateMouseMotion(0, 0, x, y);
65 } 62 }
66 63