summaryrefslogtreecommitdiff
path: root/src/lib/evas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-25 09:10:38 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-25 13:21:25 +0100
commited12d482d560fc03dd8e1e9abff11d3ded483a8f (patch)
treee75ca12fb64d999242689683a64369ef9e686bc9 /src/lib/evas
parentaac4dd306623101cd472f6f823ec9fc700652711 (diff)
evas - legacy events - cast enums after checking its ok - wrn fix
Diffstat (limited to 'src/lib/evas')
-rw-r--r--src/lib/evas/canvas/evas_events_legacy.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/evas/canvas/evas_events_legacy.c b/src/lib/evas/canvas/evas_events_legacy.c
index 4d574d0209..5511741dc3 100644
--- a/src/lib/evas/canvas/evas_events_legacy.c
+++ b/src/lib/evas/canvas/evas_events_legacy.c
@@ -59,7 +59,7 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
59 COORD_DUP(e); 59 COORD_DUP(e);
60 e->data = ev->data; 60 e->data = ev->data;
61 e->timestamp = ev->timestamp; 61 e->timestamp = ev->timestamp;
62 e->event_flags = ev->event_flags; 62 e->event_flags = (Evas_Event_Flags)ev->event_flags;
63 e->dev = ev->device; 63 e->dev = ev->device;
64 e->event_src = ev->source; 64 e->event_src = ev->source;
65 e->modifiers = ev->modifiers; 65 e->modifiers = ev->modifiers;
@@ -78,7 +78,7 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
78 COORD_DUP(e); 78 COORD_DUP(e);
79 e->data = ev->data; 79 e->data = ev->data;
80 e->timestamp = ev->timestamp; 80 e->timestamp = ev->timestamp;
81 e->event_flags = ev->event_flags; 81 e->event_flags = (Evas_Event_Flags)ev->event_flags;
82 e->dev = ev->device; 82 e->dev = ev->device;
83 e->event_src = ev->source; 83 e->event_src = ev->source;
84 e->modifiers = ev->modifiers; 84 e->modifiers = ev->modifiers;
@@ -101,9 +101,9 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
101 e->canvas.y = ev->cur.y; 101 e->canvas.y = ev->cur.y;
102 COORD_DUP(e); 102 COORD_DUP(e);
103 e->data = ev->data; 103 e->data = ev->data;
104 e->flags = ev->button_flags; 104 e->flags = (Evas_Button_Flags)ev->button_flags;
105 e->timestamp = ev->timestamp; 105 e->timestamp = ev->timestamp;
106 e->event_flags = ev->event_flags; 106 e->event_flags = (Evas_Event_Flags)ev->event_flags;
107 e->dev = ev->device; 107 e->dev = ev->device;
108 e->event_src = ev->source; 108 e->event_src = ev->source;
109 e->modifiers = ev->modifiers; 109 e->modifiers = ev->modifiers;
@@ -128,9 +128,9 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
128 e->canvas.y = ev->cur.y; 128 e->canvas.y = ev->cur.y;
129 COORD_DUP(e); 129 COORD_DUP(e);
130 e->data = ev->data; 130 e->data = ev->data;
131 e->flags = ev->button_flags; 131 e->flags = (Evas_Button_Flags)ev->button_flags;
132 e->timestamp = ev->timestamp; 132 e->timestamp = ev->timestamp;
133 e->event_flags = ev->event_flags; 133 e->event_flags = (Evas_Event_Flags)ev->event_flags;
134 e->dev = ev->device; 134 e->dev = ev->device;
135 e->modifiers = ev->modifiers; 135 e->modifiers = ev->modifiers;
136 e->locks = ev->locks; 136 e->locks = ev->locks;
@@ -152,9 +152,9 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
152 e->canvas.y = ev->cur.y; 152 e->canvas.y = ev->cur.y;
153 COORD_DUP(e); 153 COORD_DUP(e);
154 e->data = ev->data; 154 e->data = ev->data;
155 e->flags = ev->button_flags; 155 e->flags = (Evas_Button_Flags)ev->button_flags;
156 e->timestamp = ev->timestamp; 156 e->timestamp = ev->timestamp;
157 e->event_flags = ev->event_flags; 157 e->event_flags = (Evas_Event_Flags)ev->event_flags;
158 e->dev = ev->device; 158 e->dev = ev->device;
159 e->event_src = ev->source; 159 e->event_src = ev->source;
160 e->modifiers = ev->modifiers; 160 e->modifiers = ev->modifiers;
@@ -179,9 +179,9 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
179 e->canvas.y = ev->cur.y; 179 e->canvas.y = ev->cur.y;
180 COORD_DUP(e); 180 COORD_DUP(e);
181 e->data = ev->data; 181 e->data = ev->data;
182 e->flags = ev->button_flags; 182 e->flags = (Evas_Button_Flags)ev->button_flags;
183 e->timestamp = ev->timestamp; 183 e->timestamp = ev->timestamp;
184 e->event_flags = ev->event_flags; 184 e->event_flags = (Evas_Event_Flags)ev->event_flags;
185 e->dev = ev->device; 185 e->dev = ev->device;
186 e->modifiers = ev->modifiers; 186 e->modifiers = ev->modifiers;
187 e->locks = ev->locks; 187 e->locks = ev->locks;
@@ -207,7 +207,7 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
207 COORD_DUP_PREV(e); 207 COORD_DUP_PREV(e);
208 e->data = ev->data; 208 e->data = ev->data;
209 e->timestamp = ev->timestamp; 209 e->timestamp = ev->timestamp;
210 e->event_flags = ev->event_flags; 210 e->event_flags = (Evas_Event_Flags)ev->event_flags;
211 e->dev = ev->device; 211 e->dev = ev->device;
212 e->event_src = ev->source; 212 e->event_src = ev->source;
213 e->modifiers = ev->modifiers; 213 e->modifiers = ev->modifiers;
@@ -233,7 +233,7 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
233 COORD_DUP_CUR(e); 233 COORD_DUP_CUR(e);
234 e->data = ev->data; 234 e->data = ev->data;
235 e->timestamp = ev->timestamp; 235 e->timestamp = ev->timestamp;
236 e->event_flags = ev->event_flags; 236 e->event_flags = (Evas_Event_Flags)ev->event_flags;
237 e->dev = ev->device; 237 e->dev = ev->device;
238 e->modifiers = ev->modifiers; 238 e->modifiers = ev->modifiers;
239 e->locks = ev->locks; 239 e->locks = ev->locks;
@@ -253,7 +253,7 @@ efl_input_pointer_legacy_info_fill(Evas *eo_evas, Efl_Input_Key *eo_ev, Evas_Cal
253 COORD_DUP(e); 253 COORD_DUP(e);
254 e->data = ev->data; 254 e->data = ev->data;
255 e->timestamp = ev->timestamp; 255 e->timestamp = ev->timestamp;
256 e->event_flags = ev->event_flags; 256 e->event_flags = (Evas_Event_Flags)ev->event_flags;
257 e->dev = ev->device; 257 e->dev = ev->device;
258 e->modifiers = ev->modifiers; 258 e->modifiers = ev->modifiers;
259 e->locks = ev->locks; 259 e->locks = ev->locks;
@@ -362,7 +362,7 @@ efl_input_key_legacy_info_fill(Efl_Input_Key *evt, Evas_Event_Flags **pflags)
362 e->data = ev->data; 362 e->data = ev->data;
363 e->modifiers = ev->modifiers; 363 e->modifiers = ev->modifiers;
364 e->locks = ev->locks; 364 e->locks = ev->locks;
365 e->event_flags = ev->event_flags; 365 e->event_flags = (Evas_Event_Flags)ev->event_flags;
366 e->dev = ev->device; 366 e->dev = ev->device;
367 if (pflags) *pflags = &e->event_flags; 367 if (pflags) *pflags = &e->event_flags;
368 ev->legacy = e; 368 ev->legacy = e;
@@ -380,7 +380,7 @@ efl_input_key_legacy_info_fill(Efl_Input_Key *evt, Evas_Event_Flags **pflags)
380 e->data = ev->data; 380 e->data = ev->data;
381 e->modifiers = ev->modifiers; 381 e->modifiers = ev->modifiers;
382 e->locks = ev->locks; 382 e->locks = ev->locks;
383 e->event_flags = ev->event_flags; 383 e->event_flags = (Evas_Event_Flags)ev->event_flags;
384 e->dev = ev->device; 384 e->dev = ev->device;
385 if (pflags) *pflags = &e->event_flags; 385 if (pflags) *pflags = &e->event_flags;
386 ev->legacy = e; 386 ev->legacy = e;
@@ -400,7 +400,7 @@ efl_input_hold_legacy_info_fill(Efl_Input_Hold *evt, Evas_Event_Flags **pflags)
400 e->timestamp = ev->timestamp; 400 e->timestamp = ev->timestamp;
401 e->dev = ev->device; 401 e->dev = ev->device;
402 e->hold = ev->hold; 402 e->hold = ev->hold;
403 e->event_flags = ev->event_flags; 403 e->event_flags = (Evas_Event_Flags)ev->event_flags;
404 if (pflags) *pflags = &e->event_flags; 404 if (pflags) *pflags = &e->event_flags;
405 ev->legacy = e; 405 ev->legacy = e;
406 406