2007-07-04 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-main.c (clutter_redraw): Move the stage
	paint init call from the main redraw function...

	* clutter/clutter-stage.c (clutter_stage_paint): ... to the
	ClutterActor::paint() overridden method in ClutterStage.
This commit is contained in:
Emmanuele Bassi 2007-07-04 09:36:44 +00:00
parent 271b13cde3
commit 436df772a4
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2007-07-04 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-main.c (clutter_redraw): Move the stage
paint init call from the main redraw function...
* clutter/clutter-stage.c (clutter_stage_paint): ... to the
ClutterActor::paint() overridden method in ClutterStage.
2007-07-04 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter.h:

View File

@ -136,10 +136,6 @@ clutter_redraw (void)
CLUTTER_UNSET_PRIVATE_FLAGS (stage, CLUTTER_ACTOR_SYNC_MATRICES);
}
/* Setup the initial paint */
clutter_stage_get_color (CLUTTER_STAGE(stage), &stage_color);
cogl_paint_init (&stage_color);
/* Call through ti the actual backend to do the painting down from
* the stage. It will likely need to swap buffers, vblank sync etc
* which will be windowing system dependant.

View File

@ -97,6 +97,10 @@ static guint stage_signals[LAST_SIGNAL] = { 0, };
static void
clutter_stage_paint (ClutterActor *self)
{
ClutterStagePrivate *priv = CLUTTER_STAGE (self)->priv;
cogl_paint_init (&priv->color);
CLUTTER_ACTOR_CLASS (clutter_stage_parent_class)->paint (self);
}