Conversion of applications using 8bpp modes
André Timmermans (100) 655 posts |
Since the PineBook Pro does not support (yet?) 8bpp modes, I need to adapt most of the full-screen plugins used by DigitalCD which rely entirely on it. The idea is in such situation to use the same colour depth as the desktop, redirect the output to a 256 sprite then plot that sprite. I started yesterday with Cthugha and I will list here the issues which I encountered to provide some guidelines for other developers. First I should maybe list some technical features of Chugha:
So here are guidelines and issues:
|
David J. Ruck (33) 1636 posts |
I had a few of those problems redirecting output to a sprite with GraphTask, but the job was simplified by only supporting VDU sequences for palette changes and not any of the ColourTrans SWIs. |
Peter Everett (9846) 59 posts |
I don’t think this affects the ELS plugin but it reminded me of a problem I found with it a couple of years ago on the PI4. It was incorrectly setting a 15bpp mode instead of a 16bpp mode. It seems I made a small change to the read_vdu_vars function in win.c, It looks like a quick fix and may not cope with all situations but here is the zip I created at the time. I also had issues with the RPCEmu using 16bpp BGR modes which I don’t think ELS copes with either. |
André Timmermans (100) 655 posts |
ELS was written before the major video addition in RISC OS 5 like 4K colour modes and RGB versus BGR. I am in the process of updating it to detect and setup the appropriate modes (like 64K full screen on the PI4) and update the plot routines. |
Peter Everett (9846) 59 posts |
Thanks André, I feel a bit responsible for it but don’t have much kit here to test on. Please let me know if I can help in any way. |