diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-01-13 09:14:45 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-01-13 10:56:17 +0000 |
commit | 8417cd0029b5b0841fa4b3f3f74397a2ec63d1af (patch) | |
tree | ee05899ce67d2579f40ecf2da6ac5de7d4f7635a /ui/sdl2.c | |
parent | b6c08970bc989bfddcf830684ea7a96b7a4d62a7 (diff) |
sdl2: fix build failure on windows
Cc: Stefan Weil <sw@weilnetz.de>
Cc: Samuel Thibault <samuel.thibault@gnu.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1484295285-8809-1-git-send-email-kraxel@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'ui/sdl2.c')
-rw-r--r-- | ui/sdl2.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. */ |