Fixup for art flush

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23467 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-09-12 14:46:25 +00:00
parent caae9667d4
commit bf296603c6
2 changed files with 18 additions and 11 deletions

View file

@ -2628,9 +2628,11 @@ static BOOL didCreatePixmaps;
forDriver: window->gdriver];
}
else
XCopyArea (dpy, window->buffer, window->ident, window->gc,
{
XCopyArea (dpy, window->buffer, window->ident, window->gc,
rectangle.x, rectangle.y, rectangle.width, rectangle.height,
rectangle.x, rectangle.y);
}
}
else
{
@ -2684,26 +2686,30 @@ static BOOL didCreatePixmaps;
[self styleoffsets: &l : &r : &t : &b
: window->win_attrs.window_style : window->ident];
xi = NSMinX(rect) - l;
yi = NSHeight(window->xframe) + b - NSMaxY(rect);
rect.origin.x = xi = NSMinX(rect) - l;
rect.origin.y = yi = NSHeight(window->xframe) + b - NSMaxY(rect);
width = NSWidth(rect);
height = NSHeight(rect);
NSDebugLLog (@"XGFlush",
@"copy X rect ((%d, %d), (%d, %d))", xi, yi, width, height);
if (width > 0 || height > 0)
{
[isa waitAllContexts];
if ((window->gdriverProtocol & GDriverHandlesBacking))
{
NSDebugLLog (@"XGFlush",
@"expose X rect ((%d, %d), (%d, %d))", xi, yi, width, height);
/* Temporary protocol until we standardize the backing buffer */
[[GSCurrentContext() class] handleExposeRect: rect
forDriver: window->gdriver];
}
else
else
{
NSDebugLLog (@"XGFlush",
@"copy X rect ((%d, %d), (%d, %d))", xi, yi, width, height);
XCopyArea (dpy, window->buffer, window->ident, window->gc,
xi, yi, width, height, xi, yi);
}
}
XFlush(dpy);

View file

@ -596,17 +596,18 @@ static int warn = 0;
events. */
{
XEvent e;
while (XCheckTypedEvent(window->display,
XShmGetEventBase(window->display) + ShmCompletion,
&e))
XShmGetEventBase(window->display) + ShmCompletion, &e))
{
[isa _gotShmCompletion: ((XShmCompletionEvent *)&e)->drawable];
}
}
}
else if (ximage)
XPutImage(display, drawable, gc, ximage,
x, y, x, y, w, h);
{
XPutImage(display, drawable, gc, ximage, x, y, x, y, w, h);
}
}
-(void) needsAlpha