Re: x color conversion [Was: Re: [AD] minor fix] |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, 2004-07-07 at 13:29 +0200, Elias Pschernig wrote:
> Hm, I just ran the demo program when experimenting with uthreds.c, and
> apparently the new color conversion breaks the startup dialogs (they
> stay black). I'm still investigating, but I don't think the fault is in
> demo.c. Do you have any idea where the problem could lie? (test/expal
> and other 8-bit stuff works - so this really is odd)
>
Ok, it's definitely the color conversion patch. See the attached
testcase - it works when reverting the patch, and has random colors with
it.
--
Elias Pschernig
#include <allegro.h>
int
main (void)
{
RGB r = {63, 0, 0};
RGB g = {0, 63, 0};
RGB b = {0, 0, 63};
RGB w = {63, 63, 63};
allegro_init ();
install_timer ();
set_gfx_mode (GFX_AUTODETECT_WINDOWED, 640, 480, 0, 0);
set_color (1, &w);
line (screen, 0, 0, 639, 479, 1);
rest (1000);
set_color (1, &r);
rest (1000);
set_color (1, &g);
rest (1000);
set_color (1, &b);
rest (1000);
return 0;
}
END_OF_MAIN ()