case MNID_FULLSCREEN_RESOLUTION:
if(sscanf(item->list[item->selected].c_str(), "%dx%d", &config->fullscreen_width, &config->fullscreen_height) == 2)
{
- Renderer::instance()->apply_config();
- Menu::recalc_pos();
+ // do nothing, changes are only applied when toggling fullscreen mode
}
break;
void
Renderer::resize(int w, int h)
{
+ // 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);
config->window_width = w;