Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » [Allegro 4.2.3, DOS] makecol() returns wrong colors

This thread is locked; no one can reply to it. rss feed Print
[Allegro 4.2.3, DOS] makecol() returns wrong colors
nolemretawxd
Member #23,407
June 2022

Hi,
My game right now is only displaying a text with Allegro version.
But the color doesn't match with what Google's color picker shows.
In color picker color is dark red, but in the game, it's bright green.
And cleared bitmap with no color provided is white.

Color depth is set to 24 which should be 16M colors, like on a modern screen.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

nolemretawxd
Member #23,407
June 2022

It's attached to this thread (main.c)

GullRaDriel
Member #3,861
September 2003
avatar

Do not set_palette except in 256 colors mode.

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

nolemretawxd
Member #23,407
June 2022

The issue was that my code was changing color depth after switching to 640x400 video mode

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: