Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-21 09:20:41 +0300
committerCampbell Barton <campbell@blender.org>2022-03-21 09:21:28 +0300
commitc4ce1b70e398785e372546daea7a33347e6767f7 (patch)
treeb13758555a799c5915c2c4be4f06a1a9465e3af2 /source/blender/windowmanager/intern/wm_event_query.c
parent3dc44f8c89acc082334034982ffc8bc802f23475 (diff)
Correct error in 3dc44f8c89acc082334034982ffc8bc802f23475
The array for event.flag was too big, harmless but incorrect. Remove the size from the declaration as it's not needed.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_event_query.c')
-rw-r--r--source/blender/windowmanager/intern/wm_event_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_query.c b/source/blender/windowmanager/intern/wm_event_query.c
index 6a8ecdafd69..503dae53122 100644
--- a/source/blender/windowmanager/intern/wm_event_query.c
+++ b/source/blender/windowmanager/intern/wm_event_query.c
@@ -88,7 +88,7 @@ void WM_event_print(const wmEvent *event)
char modifier_id[128];
{
- struct FlagIdentifierPair flag_data[4] = {
+ struct FlagIdentifierPair flag_data[] = {
{"SHIFT", KM_SHIFT},
{"CTRL", KM_CTRL},
{"ALT", KM_ALT},
@@ -100,7 +100,7 @@ void WM_event_print(const wmEvent *event)
char flag_id[128];
{
- struct FlagIdentifierPair flag_data[4] = {
+ struct FlagIdentifierPair flag_data[] = {
{"SCROLL_INVERT", WM_EVENT_SCROLL_INVERT},
{"IS_REPEAT", WM_EVENT_IS_REPEAT},
{"FORCE_DRAG_THRESHOLD", WM_EVENT_FORCE_DRAG_THRESHOLD},