: desktop_width(-1),
desktop_height(-1)
{
+ ::Renderer::instance_ = this;
+
#if SDL_MAJOR_VERSION > 1 || SDL_MINOR_VERSION > 2 || (SDL_MINOR_VERSION == 2 && SDL_PATCHLEVEL >= 10)
// unfortunately only newer SDLs have these infos.
// This must be called before SDL_SetVideoMode() or it will return
}
else
{
- flags |= SDL_RESIZABLE;
+// flags |= SDL_RESIZABLE;
width = config->window_width;
height = config->window_height;
}
{
// This causes the screen to go black, which is annoying, but seems
// unavoidable with SDL at the moment
- SDL_SetVideoMode(w, h, 0, SDL_OPENGL | SDL_RESIZABLE);
+ SDL_SetVideoMode(w, h, 0, SDL_OPENGL /*| SDL_RESIZABLE*/);
config->window_width = w;
config->window_height = h;