gdk: Compare integer values
Stage sizes are always pixel aligned, so we can do a proper integer comparison.
This commit is contained in:
parent
2aac32694c
commit
00efa5371d
@ -269,8 +269,8 @@ clutter_gdk_handle_event (GdkEvent *gdk_event)
|
|||||||
|
|
||||||
clutter_actor_get_size (CLUTTER_ACTOR (stage), &w, &h);
|
clutter_actor_get_size (CLUTTER_ACTOR (stage), &w, &h);
|
||||||
|
|
||||||
if (w != gdk_event->configure.width ||
|
if ((int) w != gdk_event->configure.width ||
|
||||||
h != gdk_event->configure.height)
|
(int) h != gdk_event->configure.height)
|
||||||
{
|
{
|
||||||
clutter_actor_set_size (CLUTTER_ACTOR (stage),
|
clutter_actor_set_size (CLUTTER_ACTOR (stage),
|
||||||
gdk_event->configure.width,
|
gdk_event->configure.width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user