From dbf3201a85b511f1b2e186fa641c55c5fd6451e4 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 18 Jul 2008 11:01:10 +0000 Subject: [PATCH] initialize all members of the GimpCoords struct. 2008-07-18 Sven Neumann * app/core/core-types.h (GIMP_COORDS_DEFAULT_VALUES): initialize all members of the GimpCoords struct. svn path=/trunk/; revision=26231 --- ChangeLog | 5 +++++ app/core/core-types.h | 15 ++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8690b9480..3afa1d31a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-07-18 Sven Neumann + + * app/core/core-types.h (GIMP_COORDS_DEFAULT_VALUES): initialize + all members of the GimpCoords struct. + 2008-07-17 Sven Neumann * app/core/gimpcoords.c (gimp_coords_mix): also mix in the new diff --git a/app/core/core-types.h b/app/core/core-types.h index 143a89438b..3bbc8b4f58 100644 --- a/app/core/core-types.h +++ b/app/core/core-types.h @@ -45,11 +45,16 @@ #define GIMP_COORDS_MAX_WHEEL 1.0 #define GIMP_COORDS_DEFAULT_WHEEL 0.5 -#define GIMP_COORDS_DEFAULT_VALUES { 0.0, 0.0, \ - GIMP_COORDS_DEFAULT_PRESSURE, \ - GIMP_COORDS_DEFAULT_TILT, \ - GIMP_COORDS_DEFAULT_TILT, \ - GIMP_COORDS_DEFAULT_WHEEL } +#define GIMP_COORDS_DEFAULT_VELOCITY 0.0 + +#define GIMP_COORDS_DEFAULT_VALUES { 0.0, 0.0, \ + GIMP_COORDS_DEFAULT_PRESSURE, \ + GIMP_COORDS_DEFAULT_TILT, \ + GIMP_COORDS_DEFAULT_TILT, \ + GIMP_COORDS_DEFAULT_WHEEL, \ + 0.0, 0.0, 0.0, 0.0, \ + GIMP_COORDS_DEFAULT_VELOCITY, \ + 0.0 } /* base classes */