Browse Source

Platform: don't add fake resize event in Sdl2Application.

I commented it out in 37e4f9d6f7, but
forgot to delete it.
pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
9bc48af18d
  1. 8
      src/Platform/Sdl2Application.cpp

8
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;
}

Loading…
Cancel
Save