diff --git a/ChangeLog b/ChangeLog index 8b835e5..528f6d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-01-26 20:07 Alexander Malmberg + + * Source/x11/XWindowBuffer.m (-_exposeRect:): Round rectangle to + expose outwards so all pixels intersected by the expose rectangle + are actually exposed. + 2003-01-26 20:04 Alexander Malmberg * Headers/xlib/XGPrivate.h, Source/art/ARTContext.m, diff --git a/Source/x11/XWindowBuffer.m b/Source/x11/XWindowBuffer.m index 3d70259..f5ebd75 100644 --- a/Source/x11/XWindowBuffer.m +++ b/Source/x11/XWindowBuffer.m @@ -27,6 +27,7 @@ #include "x11/XWindowBuffer.h" +#include #include #include @@ -318,12 +319,20 @@ rects in the new size before we are updated. For now, we just intersect with our known size to avoid problems with X. */ + NSRect r2; r = NSIntersectionRect(r, NSMakeRect(0, 0, window->xframe.size.width, window->xframe.size.height)); if (NSIsEmptyRect(r)) return; + r2.origin.x=floor(r.origin.x); + r2.origin.y=floor(r.origin.y); + r2.size.width=ceil(r.size.width+r.origin.x-r2.origin.x); + r2.size.height=ceil(r.size.height+r.origin.y-r2.origin.y); + + r=r2; + if (use_shm) {