From 9bc48af18d57d4b108c55f3a9827e8938d31f082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 20 Oct 2013 16:30:36 +0200 Subject: [PATCH] Platform: don't add fake resize event in Sdl2Application. I commented it out in 37e4f9d6f7adaa7b1632caaff16b8ee897b1ced7, but forgot to delete it. --- src/Platform/Sdl2Application.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Platform/Sdl2Application.cpp b/src/Platform/Sdl2Application.cpp index f572522d8..b4991654f 100644 --- a/src/Platform/Sdl2Application.cpp +++ b/src/Platform/Sdl2Application.cpp @@ -126,14 +126,6 @@ bool Sdl2Application::tryCreateContext(const Configuration& configuration) { context = SDL_SetVideoMode(configuration.size().x(), configuration.size().y(), 24, SDL_OPENGL|SDL_HWSURFACE|SDL_DOUBLEBUF); #endif - /* Push resize event, so viewportEvent() is called at startup */ -// SDL_Event* sizeEvent = new SDL_Event; -// sizeEvent->type = SDL_WINDOWEVENT; -// sizeEvent->window.event = SDL_WINDOWEVENT_RESIZED; -// sizeEvent->window.data1 = configuration.size().x(); -// sizeEvent->window.data2 = configuration.size().y(); -// SDL_PushEvent(sizeEvent); - c = new Context; return true; }