[cogl/cogl-1.14] sdl: Use a 32-bit type to store the user event type number
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.14] sdl: Use a 32-bit type to store the user event type number
- Date: Sun, 3 Feb 2013 09:08:50 +0000 (UTC)
commit f8108751a549cb66f3417454aceff0fc42ab0cdf
Author: Neil Roberts <neil linux intel com>
Date: Thu Jan 31 16:53:17 2013 +0000
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)
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 2b5c836..8648374 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]