Hi all.
From the GRX 2.3 version GrLoadFont didn'nt worked with BGI fonts. To fix the problem change in fonts/fdv_bgi.h and fonts/fdv_bgi.c lines with:
#ifdef BIG_ENDIAN
by:
#if BYTE_ORDER==BIG_ENDIAN
and GrLoadFont will work nicely with Bgi fonts.
I am very much interested in the XOR drawing mode, because it allows a practically verbatim translation of many of our existing PASCAL graphics routines into GRX. I can then rewrite our experimental acquisition software in C finally!
What I want to know is: what are the rules governing what it does? Does it allocate new colours temporarily, or permanently? If you have an odd number of colours in the colour table, how does it resolve the fact that one colour cannot have a direct XOR? Does it merely fill in the gap with a GrBlack()? :)
I will largely be using the GrAllocEgaColors() function, so these problems may not arise, but I'd like to know in case we ever want more colours.
Many thanks, J-P
What I want to know is: what are the rules governing what it does? Does it allocate new colours temporarily, or permanently? If you have an odd number of colours in the colour table, how does it resolve the fact that one colour cannot have a direct XOR? Does it merely fill in the gap with a GrBlack()? :)
From your question I assume you are workin in palette mode.
By example in 16 color you have 16 index to colors. If you perform 1 XOR 2 you obtain index color 3. Now, if you don't have assigned the index color 3 what color is it?. Te answer is "undefined".