mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Fixed wrong sf::Event::Resized notification when switching from fullscreen to windowed mode
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1396 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
7878edc824
commit
f0e231eabf
@ -445,6 +445,10 @@ void Window::Initialize(priv::WindowImpl* Window)
|
||||
myWindow = Window;
|
||||
myWindow->Initialize();
|
||||
|
||||
// Clear the event queue
|
||||
while (!myEvents.empty())
|
||||
myEvents.pop();
|
||||
|
||||
// Listen to events from the new window
|
||||
myWindow->AddListener(this);
|
||||
myWindow->AddListener(&myInput);
|
||||
|
Loading…
Reference in New Issue
Block a user