Mail Archives: djgpp/1998/03/06/20:47:04
I found my problem. Thanx for all your help.
[--snip--]
> ****** This is what I need to do in DJGPP:
>
> void blitChar (int xc, int yc, char c, int color, int transparentFlag) {
>
> int offset, x, y;
> unsigned char bitmask;
> unsigned char charoffset; // <-- this is only 8 bits.
> unsigned char workChar;
[--snip--]
> unsigned short romCharSet_ds = __dpmi_segment_to_descriptor (0xf000);
[--snip--]
> charoffset = 0xfa6e + c * CHAR_HEIGHT;
>
This result --^ was getting truncated to 8 bits. Duhh! But of course it's
these stupidlittle problems that cause the most trouble. :)
Thanx for all your help.
Dave.
- Raw text -