src/video/windib/SDL_dibevents.c
changeset 1523 21b1fbb53f4a
parent 1480 0a2bd6507477
child 1526 89f90f32f6c0
     1.1 --- a/src/video/windib/SDL_dibevents.c	Tue Mar 14 03:04:50 2006 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Tue Mar 14 04:00:03 2006 +0000
     1.3 @@ -438,6 +438,13 @@
     1.4  		}
     1.5  		ShowWindow(SDL_Window, SW_HIDE);
     1.6  	}
     1.7 +
     1.8 +	/* JC 14 Mar 2006
     1.9 +		Flush the message loop or this can cause big problems later
    1.10 +		Especially if the user decides to use dialog boxes or assert()!
    1.11 +	*/
    1.12 +	WIN_FlushMessageQueue();
    1.13 +
    1.14  	return(0);
    1.15  }
    1.16  
    1.17 @@ -449,4 +456,10 @@
    1.18  		DestroyWindow(SDL_Window);
    1.19  	}
    1.20  	SDL_UnregisterApp();
    1.21 +
    1.22 +	/* JC 14 Mar 2006
    1.23 +		Flush the message loop or this can cause big problems later
    1.24 +		Especially if the user decides to use dialog boxes or assert()!
    1.25 +	*/
    1.26 +	WIN_FlushMessageQueue();
    1.27  }