aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-04 18:05:57 -0400
committerZach Hilman <zachhilman@gmail.com>2019-06-10 00:03:11 -0400
commitf279e792b7c23a9fabce7c56c53c01fcf4e87547 (patch)
tree1229e5662adc8976b24471de7bd2dc3857c2ab58 /src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp
parent5ddc9cede5bc286f4be54c4510ed36f88e0d2756 (diff)
yuzutest: Support multiple tests per executable
Diffstat (limited to 'src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp')
-rw-r--r--src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp
index 3775a51e0..e7fe8decf 100644
--- a/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp
+++ b/src/yuzu_tester/emu_window/emu_window_sdl2_hide.cpp
@@ -63,13 +63,12 @@ EmuWindow_SDL2_Hide::EmuWindow_SDL2_Hide() {
std::string window_title = fmt::format("yuzu-tester {} | {}-{}", Common::g_build_fullname,
Common::g_scm_branch, Common::g_scm_desc);
- render_window =
- SDL_CreateWindow(window_title.c_str(),
- SDL_WINDOWPOS_UNDEFINED, // x position
- SDL_WINDOWPOS_UNDEFINED, // y position
- Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height,
- SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_ALLOW_HIGHDPI);
- SDL_HideWindow(render_window);
+ render_window = SDL_CreateWindow(window_title.c_str(),
+ SDL_WINDOWPOS_UNDEFINED, // x position
+ SDL_WINDOWPOS_UNDEFINED, // y position
+ Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height,
+ SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE |
+ SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_HIDDEN);
if (render_window == nullptr) {
LOG_CRITICAL(Frontend, "Failed to create SDL2 window! {}", SDL_GetError());