[clutter] gdk: Compare integer values
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] gdk: Compare integer values
- Date: Mon, 12 Jan 2015 15:07:23 +0000 (UTC)
commit 00efa5371d709c134695a3c142b310f1b630ce0a
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Jan 12 15:05:02 2015 +0000
gdk: Compare integer values
Stage sizes are always pixel aligned, so we can do a proper
integer comparison.
clutter/gdk/clutter-event-gdk.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/gdk/clutter-event-gdk.c b/clutter/gdk/clutter-event-gdk.c
index 7675cc1..9f7dec7 100644
--- a/clutter/gdk/clutter-event-gdk.c
+++ b/clutter/gdk/clutter-event-gdk.c
@@ -269,8 +269,8 @@ clutter_gdk_handle_event (GdkEvent *gdk_event)
clutter_actor_get_size (CLUTTER_ACTOR (stage), &w, &h);
- if (w != gdk_event->configure.width ||
- h != gdk_event->configure.height)
+ if ((int) w != gdk_event->configure.width ||
+ (int) h != gdk_event->configure.height)
{
clutter_actor_set_size (CLUTTER_ACTOR (stage),
gdk_event->configure.width,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]