summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-06-12 10:47:06 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-06-12 10:47:06 +0200
commit7893ce3aeab23c2a31c5d84d74db06eec5810d87 (patch)
tree9a3ca255da3c2af104188fe530884e1344a242aa
parent550175d8b8ec9739c5e7810bbdba789cf6b49158 (diff)
fix handling VIDEO_NONE on windows (nw)
fix SDL version of zexall (nw)
-rw-r--r--src/osd/windows/window.cpp6
-rw-r--r--src/zexall/main.cpp2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/osd/windows/window.cpp b/src/osd/windows/window.cpp
index ffcf2704a75..418c6c6c8f8 100644
--- a/src/osd/windows/window.cpp
+++ b/src/osd/windows/window.cpp
@@ -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;
diff --git a/src/zexall/main.cpp b/src/zexall/main.cpp
index b3bcf101b9e..6b7e2c11e1a 100644
--- a/src/zexall/main.cpp
+++ b/src/zexall/main.cpp
@@ -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; }