Peter Bortas <[EMAIL PROTECTED]> writes:
> The question I would like to ask is: How do I crossblit from a
> memvisual to a normal visual. It's very embarrassing, but I can't even
> get that to work. Please take a look at this example code and tell me
> where I went wrong:
A good, you found a bug in the memory target. ;)
At least IIRC we agreed that paletted visuals should have some
default palette, but that the exact layout of it is undefined.
For now, you can simply use this workaround:
> if( (memvis = ggiOpen("display-memory",NULL)) == NULL )
> ggiPanic("Unable to open memory visual, exiting.\n");
>
> if (ggiSetMode(memvis, &memmode) != 0)
> ggiPanic("Cannot set memvis mode!\n");
ggiSetColorfulPalette(memvis);
> /* Just me being paranoid. */
> ggiGetMode(memvis, &memmode);
> ggiPrintMode( &memmode );
> printf("\n");
> }
//Marcus
--
-------------------------------+------------------------------------
Marcus Sundberg | http://www.stacken.kth.se/~mackan
Royal Institute of Technology | Phone: +46 707 452062
Stockholm, Sweden | E-Mail: [EMAIL PROTECTED]