fix handling VIDEO_NONE on windows (nw)

fix SDL version of zexall (nw)
This commit is contained in:
Miodrag Milanovic 2016-06-12 10:47:06 +02:00
parent 550175d8b8
commit 7893ce3aea
2 changed files with 6 additions and 2 deletions

View File

@ -1096,8 +1096,12 @@ int win_window_info::complete_create()
SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)this);
// skip the positioning stuff for -video none */
if (video_config.mode == VIDEO_MODE_NONE)
if (video_config.mode == VIDEO_MODE_NONE)
{
set_renderer(osd_renderer::make_for_type(video_config.mode, shared_from_this()));
renderer().create();
return 0;
}
// adjust the window position to the initial width/height
tempwidth = (m_win_config.width != 0) ? m_win_config.width : 640;

View File

@ -99,7 +99,7 @@ void emulator_info::layout_file_cb(xml_data_node &layout) { }
const char * emulator_info::get_appname() { return nullptr; }
const char * emulator_info::get_appname_lower() { return nullptr; }
const char * emulator_info::get_appname_lower() { return "zexall"; }
const char * emulator_info::get_configname() { return nullptr; }