Incorrect colours in fullscreen with SDL applications
Cameron Cawley (3514) 158 posts |
Starting with commit 4e73be7b4787, SDL displays incorrect colours when switching to full screen if an application requests a 16-bit colour mode. What I suspect might be the issue is that SDL tries each of the supported colour modes and uses the first one that works, however 64K TBGR is reported as being supported, and will successfully switch to it if requested, despite only 64K TRGB being available on the desktop. I’m not 100% sure that’s it though, but I have no idea how to fix it. Any suggestions? This affects ScummVM, and potentially other SDL applications as well. This is with RISC OS 5.24 on a Raspberry Pi 3. |
Jeffrey Lee (213) 6048 posts |
It looks like BCMVideo should be rejecting unsupported pixel formats, but I can double-check what’s really happening. Do you have any video-related things like AnyMode or Aemulor loaded? IIRC some (all?) versions of AnyMode don’t vet modes correctly, which could lead to it asking the GPU to use a mode that isn’t supported. |
Cameron Cawley (3514) 158 posts |
Thanks for the suggestion, it turns out that having AnyMode loaded was the problem. |