From ba257b019635c839197347709b850e83b71c910c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 30 Jul 2008 15:47:43 +0000 Subject: [PATCH] 2008-07-30 Emmanuele Bassi * clutter/clutter-fixed.h: * clutter/clutter-units.h: Fix the upper and lower boundaries of ClutterFixed and ClutterUnit types; G_MAXINT16 and G_MININT16 were not enough to describe those values. --- ChangeLog | 7 +++++++ clutter/clutter-fixed.h | 4 ++-- clutter/clutter-units.h | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 282fa1713..58043b080 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-07-30 Emmanuele Bassi + + * clutter/clutter-fixed.h: + * clutter/clutter-units.h: Fix the upper and lower boundaries of + ClutterFixed and ClutterUnit types; G_MAXINT16 and G_MININT16 + were not enough to describe those values. + 2008-07-30 Ross Burton * clutter/clutter-main.c: diff --git a/clutter/clutter-fixed.h b/clutter/clutter-fixed.h index ce60b3c66..db520aba1 100644 --- a/clutter/clutter-fixed.h +++ b/clutter/clutter-fixed.h @@ -435,7 +435,7 @@ typedef struct _ClutterParamSpecFixed ClutterParamSpecFixed; * * Since: 0.8 */ -#define CLUTTER_MAXFIXED G_MAXINT16 +#define CLUTTER_MAXFIXED CFX_MAX /** * CLUTTER_MINFIXED: @@ -444,7 +444,7 @@ typedef struct _ClutterParamSpecFixed ClutterParamSpecFixed; * * Since: 0.8 */ -#define CLUTTER_MINFIXED G_MININT16 +#define CLUTTER_MINFIXED CFX_MIN /** * ClutterParamSpecFixed diff --git a/clutter/clutter-units.h b/clutter/clutter-units.h index 9e9e2624a..44494238f 100644 --- a/clutter/clutter-units.h +++ b/clutter/clutter-units.h @@ -152,7 +152,7 @@ typedef gint32 ClutterUnit; * * Since: 0.8 */ -#define CLUTTER_MAXUNIT G_MAXINT16 +#define CLUTTER_MAXUNIT (0x7fffffff) /** * CLUTTER_MINUNIT: @@ -161,7 +161,7 @@ typedef gint32 ClutterUnit; * * Since: 0.8 */ -#define CLUTTER_MINUNIT G_MININT16 +#define CLUTTER_MINUNIT (0x80000000) /** * CLUTTER_VALUE_HOLDS_UNIT: