|
[Allegro 4.2.3, DOS] makecol() returns wrong colors |
nolemretawxd
Member #23,407
June 2022
|
Hi, Color depth is set to 24 which should be 16M colors, like on a modern screen. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Show code. makecol has worked fine for decades. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
nolemretawxd
Member #23,407
June 2022
|
It's attached to this thread (main.c) |
GullRaDriel
Member #3,861
September 2003
|
Do not set_palette except in 256 colors mode. "Code is like shit - it only smells if it is not yours" |
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
|
Correct. set_color_depth needs to be called before set_graphics_mode. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|