Corrected compile-time error on old platforms (ex: RHEL7)
This commit is contained in:
parent
9d70b5837c
commit
f3d177621b
1 changed files with 2 additions and 1 deletions
|
|
@ -2663,7 +2663,8 @@ static void mainloop(void)
|
||||||
int rest =
|
int rest =
|
||||||
SDL_PeepEvents(NULL, 1000, SDL_PEEKEVENT, SDL_MOUSEMOTION,
|
SDL_PeepEvents(NULL, 1000, SDL_PEEKEVENT, SDL_MOUSEMOTION,
|
||||||
SDL_MOUSEMOTION);
|
SDL_MOUSEMOTION);
|
||||||
for (int i = 0; i < rest; i++)
|
int i;
|
||||||
|
for (i = 0; i < rest; i++)
|
||||||
{
|
{
|
||||||
SDL_PollEvent(&event);
|
SDL_PollEvent(&event);
|
||||||
if (event.type != SDL_MOUSEMOTION) /* But keep any other events that could be there */
|
if (event.type != SDL_MOUSEMOTION) /* But keep any other events that could be there */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue