[EMAIL PROTECTED] (Christoph Egger) writes:
> On 18 Nov 2000, Marcus Sundberg wrote:
> > Any drawing into to the X window done by the X-server will be erased
> > by the next ggiFlush(),
>
> Ah! That's why the screen is cleared after I called ggiFlush() in the
> target-code.
>
> > so if you think you have added acceleration
> > to the X-target the only thing you have actually done is to break it
> > completely.
> >
> > The Xlib target on the other hand can be accelerated just fine by
> > any extension.
>
> Err... If I get you right, then wrote a Xlib-target and not a X-target,
> right?
>
> So I have just to rename it into Xlib, right?
Basicly yes. Some changes to make:
XSetForeground(priv->x.display, priv->x.gc, col);
should be replaced by:
if (col != LIBGGI_GC(vis)->fg_color) {
LIBGGI_GC(vis)->fg_color = col;
XSetForeground(priv->x.display, priv->x.gc, col);
}
and
XFlush(priv->x.display);
should be replaced with:
if (!(LIBGGI_FLAGS(vis) & GGIFLAG_ASYNC)) {
vis->opdisplay->flush(vis, 0, 0, LIBGGI_X(vis), LIBGGI_Y(vis), 1);
}
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan
Royal Institute of Technology | Phone: +46 707 452062
Stockholm, Sweden | E-Mail: [EMAIL PROTECTED]