summaryrefslogtreecommitdiffstats
path: root/src/yuzu_tester/emu_window
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-04-05 00:05:57 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-10 06:03:11 +0200
commitf279e792b7c23a9fabce7c56c53c01fcf4e87547 (patch)
tree1229e5662adc8976b24471de7bd2dc3857c2ab58 /src/yuzu_tester/emu_window
parentyuzu_tester: Add 'yuzutest' service (diff)
downloadyuzu-f279e792b7c23a9fabce7c56c53c01fcf4e87547.tar
yuzu-f279e792b7c23a9fabce7c56c53c01fcf4e87547.tar.gz
yuzu-f279e792b7c23a9fabce7c56c53c01fcf4e87547.tar.bz2
yuzu-f279e792b7c23a9fabce7c56c53c01fcf4e87547.tar.lz
yuzu-f279e792b7c23a9fabce7c56c53c01fcf4e87547.tar.xz
yuzu-f279e792b7c23a9fabce7c56c53c01fcf4e87547.tar.zst
yuzu-f279e792b7c23a9fabce7c56c53c01fcf4e87547.zip
Diffstat (limited to 'src/yuzu_tester/emu_window')
-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());