Fixed compiler warning
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40519
This commit is contained in:
parent
9a5eea0cf3
commit
3e7d6e349a
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ int SDL_MouseInit(void)
|
||||||
/* We lost the mouse, so post button up messages for all pressed buttons */
|
/* We lost the mouse, so post button up messages for all pressed buttons */
|
||||||
void SDL_ResetMouse(void)
|
void SDL_ResetMouse(void)
|
||||||
{
|
{
|
||||||
int i;
|
Uint8 i;
|
||||||
for ( i = 0; i < sizeof(SDL_ButtonState)*8; ++i ) {
|
for ( i = 0; i < sizeof(SDL_ButtonState)*8; ++i ) {
|
||||||
if ( SDL_ButtonState & SDL_BUTTON(i) ) {
|
if ( SDL_ButtonState & SDL_BUTTON(i) ) {
|
||||||
SDL_PrivateMouseButton(SDL_RELEASED, i, 0, 0);
|
SDL_PrivateMouseButton(SDL_RELEASED, i, 0, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue