mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
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:
parent
271b13cde3
commit
436df772a4
@ -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:
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user