[iyonix-support] Re: 16 colour screen modes on the Iyonix

Paul Vigay <lists-nospam@xxxxxxxxx> wrote:
> Is there any way to simulate 16 colour screen modes on the Iyonix?
> 
> I'm trying to convert some old games to 32-bit compatibility, but a
> couple use 16 colour screen modes with palette switching to obtain
> animation effects.
> 
> Whilst in terms of screen plotting etc., they seem to work when converted
> to 256 colours, the palette switching routines don't work in 256 colours
> which means the graphics and colours all go to pot. :-(
> 
> Is there any way around this?

Redirect the game to plot into a 16 colour sprite back buffer, track change
rectangles on each update cycle, and then replot the changed area to the
screen. Invalidate the entire area on a palette change.

If you are doing this you might as well convert the game to run on the
desktop rather than full screen, as its very easy to put the sprite
backbuffer in to a window.

Cheers
---Dave

-- 
Email: druck@xxxxxxxxxxxx
Phone: +44- (0)7974 108301
  Web: http://www.druck.org.uk/

---
To alter your preferences or leave the group, 
visit http://www.freelists.org/list/iyonix-support
Other info via http://www.freelists.org/webpage/iyonix-support

Other related posts: