d21b7522f8
* 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> |
||
---|---|---|
.. | ||
clutter-backend-glx.c | ||
clutter-backend-glx.h | ||
clutter-event-glx.c | ||
clutter-event-glx.h | ||
clutter-glx-texture-pixmap.c | ||
clutter-glx-texture-pixmap.h | ||
clutter-glx.h | ||
clutter-stage-glx.c | ||
clutter-stage-glx.h | ||
Makefile.am |