On Tue, 10 Apr 2001 [EMAIL PROTECTED] wrote:
> Christoph Egger writes:
> > #define BLTFLAG_SYNC 0x0000
> > #define BLTFLAG_ASYNC GGIFLAG_ASYNC
> >
>
> Shouldn't it rather follow the ggi sync mode?
>
[snip]
> > int ggiBltSetSyncMode(ggiBlt_t blt, ggi_flags sync);
>
> Shouldn't it always follow the GGI_SYNC flag?
This has nothing to do with ggiSetFlags(), although the values are
the same.
When the blitting-operation is done in sync-mode, then it is done
immediately. If it is in async-mode, then all blitting-operations
that are performed to the given blt-argument to ggiBltFlush() at
_once_, when calling ggiBltFlush().
Further, the sync-mode refers _always_ to the destination.
Example:
You have blt1 (async-mode) and blt2 (sync-mode) and you do sth. like
this
ggiBltCrossBlit(blt1, blt2, 0,0, rop);
then the blit is done immediately, because blt2 is the destination.
Comments are welcome.
CU,
Christoph Egger
E-Mail: [EMAIL PROTECTED]