Skip to content
Snippets Groups Projects
Commit 8417cd00 authored by Gerd Hoffmann's avatar Gerd Hoffmann Committed by Peter Maydell
Browse files

sdl2: fix build failure on windows


Cc: Stefan Weil <sw@weilnetz.de>
Cc: Samuel Thibault <samuel.thibault@gnu.org>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarStefan Weil <sw@weilnetz.de>
Message-id: 1484295285-8809-1-git-send-email-kraxel@redhat.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent b6c08970
No related branches found
No related tags found
No related merge requests found
......@@ -817,9 +817,15 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
sdl2_console[i].dcl.con = con;
register_displaychangelistener(&sdl2_console[i].dcl);
#if defined(SDL_VIDEO_DRIVER_WINDOWS) || defined(SDL_VIDEO_DRIVER_X11)
if (SDL_GetWindowWMInfo(sdl2_console[i].real_window, &info)) {
#if defined(SDL_VIDEO_DRIVER_WINDOWS)
qemu_console_set_window_id(con, (uintptr_t)info.info.win.window);
#elif defined(SDL_VIDEO_DRIVER_X11)
qemu_console_set_window_id(con, info.info.x11.window);
#endif
}
#endif
}
/* Load a 32x32x4 image. White pixels are transparent. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment