Index:
[thread]
[date]
[subject]
[author]
From: Jos Hulzink <josh@stack.nl>
To : ggi-develop@eskimo.com
Date: Fri, 12 Nov 1999 10:45:09 +0100 (CET)
Re: default/fbdev/s3/virge.so
On Fri, 12 Nov 1999, Andrew Apted wrote:
> Jos Hulzink writes:
>
> In my understanding of the GC, you only need to reprogram the hardware
> state (e.g. do a ViRGE_set_colors) when the GC has _changed_, and
> there's a number in the GC that tells you when it has changed.
>
> Don't know how it works for big buffers of accel commands though, I'd
> probably think that having extra accel commands for changing contents
> of the GC would be a good idea.
>
> > and one programming GGI must do ugly tricks to get his lines and
> > boxes in the colour he wants.
>
> like this: ?
>
As long as ggiDrawBox doesn't return before the accel is done, this
works. But this is not the case with PP buffers. Problem is that with :
ggiSetGCForeground(vis, &my_color);
ggiDrawBox(vis, x, y, w, h);
ggiSetGCForeground(vis, &my_color);
the second fg colour can be set before the DrawBox is executed. Someone
once wrote how to solve this, but I don't know where the text has gone...
Jos
Index:
[thread]
[date]
[subject]
[author]