mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
Fixed Alt-Enter on SDL (nw)
This commit is contained in:
parent
a63a43ca9d
commit
bcb1b85de5
@ -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() ?
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user