2006-09-20 Matthew Allum <mallum@openedhand.com>

* clutter/clutter-actor.c: (clutter_actor_paint):
        * clutter/clutter-clone-texture.c: (clutter_clone_texture_paint):
        * clutter/clutter-group.c: (clutter_group_paint):
        * clutter/clutter-rectangle.c: (clutter_rectangle_paint):
        * clutter/clutter-texture.c: (clutter_texture_paint):
        Fix for #156.
        clutter_actor_paint() now translates to actor position as
        to not fix scaled groups positioning. Sub classes now paint
        at 0,0.
This commit is contained in:
Matthew Allum
2006-09-20 18:38:08 +00:00
parent 94c0e54bc3
commit 1bd964c757
6 changed files with 34 additions and 29 deletions

View File

@ -204,8 +204,9 @@ clutter_clone_texture_paint (ClutterActor *self)
CLUTTER_DBG("paint to x1: %i, y1: %i x2: %i, y2: %i opacity: %i",
x1, y1, x2, y2, clutter_actor_get_opacity(self) );
/* Parent paint translated us into position */
clone_texture_render_to_gl_quad (CLUTTER_CLONE_TEXTURE(self),
x1, y1, x2, y2);
0, 0, x2 - x1, y2 - y1);
glDisable(target_type);
glDisable(GL_BLEND);
}