From f8108751a549cb66f3417454aceff0fc42ab0cdf Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 31 Jan 2013 16:53:17 +0000 Subject: [PATCH] sdl: Use a 32-bit type to store the user event type number In SDL1 the event type numbers were a single byte so there were only reserving a byte to store the application's chosen type in CoglRenderer. However in SDL2 they are a Uint32 and SDL_USEREVENT is 0x8000 so if the application was using that then Cogl would actually end up posting event type 0. Reviewed-by: Robert Bragg (cherry picked from commit 39c9177776ac601a92c6f4112558464af6968ea0) --- cogl/cogl-renderer-private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl-renderer-private.h b/cogl/cogl-renderer-private.h index 2b5c83630..8648374af 100644 --- a/cogl/cogl-renderer-private.h +++ b/cogl/cogl-renderer-private.h @@ -70,7 +70,7 @@ struct _CoglRenderer #ifdef COGL_HAS_SDL_SUPPORT CoglBool sdl_event_type_set; - uint8_t sdl_event_type; + uint32_t sdl_event_type; #endif /* List of callback functions that will be given every native event */