diff options
author | Neil Roberts <neil@linux.intel.com> | 2013-01-31 16:53:17 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2013-02-03 10:07:47 +0100 |
commit | f8108751a549cb66f3417454aceff0fc42ab0cdf (patch) | |
tree | 3dc66ce86ba1aee1a6c14ebb60fe25d58cc9c538 /cogl/cogl-renderer-private.h | |
parent | b34034217abb9227219d8408b8bdcae0a840e96b (diff) | |
download | cogl-f8108751a549cb66f3417454aceff0fc42ab0cdf.tar.gz |
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 <robert@linux.intel.com>
(cherry picked from commit 39c9177776ac601a92c6f4112558464af6968ea0)
Diffstat (limited to 'cogl/cogl-renderer-private.h')
-rw-r--r-- | cogl/cogl-renderer-private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl-renderer-private.h b/cogl/cogl-renderer-private.h index 2b5c8363..8648374a 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 */ |