Fixed Alt-Enter on SDL (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-26 09:20:50 +02:00
parent a63a43ca9d
commit bcb1b85de5
2 changed files with 4 additions and 1 deletions

View File

@ -174,6 +174,7 @@ public:
virtual void show_pointer() = 0;
virtual void hide_pointer() = 0;
void renderer_reset() { m_renderer.reset(); }
#ifndef OSD_SDL
virtual bool win_has_menu() = 0;
// FIXME: cann we replace winwindow_video_window_monitor(nullptr) with monitor() ?

View File

@ -451,6 +451,8 @@ OSDWORK_CALLBACK( sdl_window_info::sdlwindow_toggle_full_screen_wt )
window->m_windowed_dim = window->get_size();
}
window->renderer_reset();
window->set_platform_window(nullptr);
bool is_osx = false;
#ifdef SDLMAME_MACOSX
// FIXME: This is weird behaviour and certainly a bug in SDL
@ -471,7 +473,7 @@ OSDWORK_CALLBACK( sdl_window_info::sdlwindow_toggle_full_screen_wt )
// toggle the window mode
window->set_fullscreen(!window->fullscreen());
complete_create_wt(param, 0);
complete_create_wt(std::move(wp.release()), 0);
return nullptr;
}