2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Wed, 25 Jun 2008 14:20:27 +0000 (14:20 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Wed, 25 Jun 2008 14:20:27 +0000 (14:20 +0000)
* clutter/clutter-stage.c:
(clutter_stage_allocate): Minor optimization.

(clutter_stage_init): Do not set the minimum size of the
stage wrapper, and require that the backends set the size
themselves.

ChangeLog
clutter/clutter-stage.c

index c9f4713..2bec60f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>
 
+       * clutter/clutter-stage.c:
+       (clutter_stage_allocate): Minor optimization.
+
+       (clutter_stage_init): Do not set the minimum size of the
+       stage wrapper, and require that the backends set the size
+       themselves.
+
+2008-06-25  Emmanuele Bassi  <ebassi@openedhand.com>
+
        * clutter/eglnative/clutter-stage-egl.c:
        (clutter_stage_egl_realize): Try to force the minimum and
        natural size on realization.
index 0fa0e61..5116321 100644 (file)
@@ -164,7 +164,7 @@ clutter_stage_allocate (ClutterActor          *self,
    * then we simply ignore any allocation request and override the
    * allocation chain.
    */
-  if (!clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC))
+  if (G_LIKELY (!clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC)))
     {
       ClutterActorClass *klass;
 
@@ -718,7 +718,6 @@ clutter_stage_init (ClutterStage *self)
   priv->fog.z_near  = CLUTTER_FLOAT_TO_FIXED (1.0);
   priv->fog.z_far   = CLUTTER_FLOAT_TO_FIXED (2.0);
 
-  clutter_actor_set_size (CLUTTER_ACTOR (self), 640, 480);
   clutter_actor_set_reactive (CLUTTER_ACTOR (self), TRUE);
   clutter_stage_set_key_focus (self, NULL);
 }