mutter/clutter/glx
Owen W. Taylor d21b7522f8 Fix errors in keeping track of the stage bounding rectangle
* Add new clutter_geometry_union(), because writing union intersection
  is harder than it looks. Fixes two problems with the inline code in
  clutter_stage_glx_add_redraw_clip().

  1) The ->x and ->y of were reassigned to before using them to
     compute the new width and height.
  2) since ClutterGeometry has unsigned width, x + width is unsigned,
     and comparison goes wrong if either rectangle has a negative
     x + width. (We fixed width for GdkRectangle to be signed for GTK+-2.0,
     this is a potent source of bugs.)

* Use in clutter_stage_glx_add_redraw_clip()

* Account for the case where the incoming rectangle is empty, and don't
  end up with the stage being entirely redrawn.

* Account for the case where the stage already has a degenerate
  width and don't end up with redrawing only the new rectangle and not
  the rest of the stage.

The better fix here for the second two problems is to stop using a 0
width to mean the entire stage, but this should work for now.

http://bugzilla.openedhand.com/show_bug.cgi?id=2040

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-03-19 10:29:53 +00:00
..
clutter-backend-glx.c Fix argb initialisation. 2010-03-10 00:13:37 +00:00
clutter-backend-glx.h
clutter-event-glx.c
clutter-event-glx.h
clutter-glx-texture-pixmap.c glx tfp: make clutter_glx_texture_pixmap_update_area cheap 2010-03-02 17:19:11 +00:00
clutter-glx-texture-pixmap.h
clutter-glx.h
clutter-stage-glx.c Fix errors in keeping track of the stage bounding rectangle 2010-03-19 10:29:53 +00:00
clutter-stage-glx.h
Makefile.am