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:
LaurentGom 2010-02-10 11:01:38 +00:00
parent 7878edc824
commit f0e231eabf

View File

@ -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);