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.
This commit is contained in:
Emmanuele Bassi 2008-06-25 14:20:27 +00:00
parent 72bdcccf26
commit 8a51236858
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,12 @@
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> 2008-06-25 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/eglnative/clutter-stage-egl.c: * clutter/eglnative/clutter-stage-egl.c:

View File

@ -164,7 +164,7 @@ clutter_stage_allocate (ClutterActor *self,
* then we simply ignore any allocation request and override the * then we simply ignore any allocation request and override the
* allocation chain. * allocation chain.
*/ */
if (!clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC)) if (G_LIKELY (!clutter_feature_available (CLUTTER_FEATURE_STAGE_STATIC)))
{ {
ClutterActorClass *klass; ClutterActorClass *klass;
@ -718,7 +718,6 @@ clutter_stage_init (ClutterStage *self)
priv->fog.z_near = CLUTTER_FLOAT_TO_FIXED (1.0); priv->fog.z_near = CLUTTER_FLOAT_TO_FIXED (1.0);
priv->fog.z_far = CLUTTER_FLOAT_TO_FIXED (2.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_actor_set_reactive (CLUTTER_ACTOR (self), TRUE);
clutter_stage_set_key_focus (self, NULL); clutter_stage_set_key_focus (self, NULL);
} }