johannes-fetz / joengine

Jo Engine is an open source 2D and 3D game engine for the Sega Saturn written in C under MIT license
http://jo-engine.org/
MIT License
205 stars 32 forks source link

jo_set_printf_color_index() Won't Print Black on 480i #72

Open slinga-homebrew opened 9 months ago

slinga-homebrew commented 9 months ago

Hi Johannes,

Hope all is well. See attached screenshot. image

jo_printf_with_color(0, 0, JO_COLOR_INDEX_White, "JO_COLOR_INDEX_White"); jo_printf_with_color(0, 1, JO_COLOR_INDEX_Black, "JO_COLOR_INDEX_Black"); jo_printf_with_color(0, 2, JO_COLOR_INDEX_Red, "JO_COLOR_INDEX_Red"); jo_printf_with_color(0, 3, JO_COLOR_INDEX_Green, "JO_COLOR_INDEX_Green"); jo_printf_with_color(0, 4, JO_COLOR_INDEX_Yellow, "JO_COLOR_INDEX_Yellow"); jo_printf_with_color(0, 5, JO_COLOR_INDEX_Blue, "JO_COLOR_INDEX_Blue"); jo_printf_with_color(0, 6, JO_COLOR_INDEX_Purple, "JO_COLOR_INDEX_Purple");

As you can see Black text is not printing correctly. I tested the sample ("demo - printf") and I verified that Black is working there. So it's something to do with the fact that I am running in 480i mode + 8bpp palette mode I guess. Weird that all the other colors work though right?

Mostly documenting, not expecting a fix. Thanks again.

johannes-fetz commented 7 months ago

@slinga-homebrew Do you have a sample code to reproduce this issue ?

slinga-homebrew commented 4 months ago

I can't repro, apologies.

slinga-homebrew commented 4 months ago

Actually I was able to repro: Sweeper-Squad.zip

image

slinga-homebrew commented 4 months ago

Sorry, was trying to reopen.