[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] sdl2: fix build failure on windows
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] sdl2: fix build failure on windows |
Date: |
Fri, 13 Jan 2017 13:45:54 +0000 |
On 13 January 2017 at 08:27, Stefan Weil <address@hidden> wrote:
> Am 13.01.2017 um 09:14 schrieb Gerd Hoffmann:
>> Cc: Stefan Weil <address@hidden>
>> Cc: Samuel Thibault <address@hidden>
>> Signed-off-by: Gerd Hoffmann <address@hidden>
>> ---
>> ui/sdl2.c | 6 ++++++
>> 1 file changed, 6 insertions(+)
>>
>> diff --git a/ui/sdl2.c b/ui/sdl2.c
>> index 9a79b17..91fb111 100644
>> --- a/ui/sdl2.c
>> +++ b/ui/sdl2.c
>> @@ -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. */
>
>
> Thanks.
>
> Reviewed-by: Stefan Weil <address@hidden>
Thanks; applied to master as a buildfix.
-- PMM