Make 2d/font.c more similar between d1x-rebirth and d2x-rebirth

This commit is contained in:
Chris Taylor 2012-03-30 20:36:35 +08:00
parent 565f629688
commit e60981310b
2 changed files with 8 additions and 7 deletions

View file

@ -385,7 +385,7 @@ int gr_internal_string0m(int x, int y, char *s )
if (underline)
for (i=0; i< width; i++ )
DATA[VideoOffset++] = (unsigned int) grd_curcanv->cv_font_fg_color;
DATA[VideoOffset++] = (unsigned char) grd_curcanv->cv_font_fg_color;
else
{
fp += BITS_TO_BYTES(width)*r;
@ -400,7 +400,7 @@ int gr_internal_string0m(int x, int y, char *s )
}
if (bits & BitMask)
DATA[VideoOffset++] = (unsigned int) grd_curcanv->cv_font_fg_color;
DATA[VideoOffset++] = (unsigned char) grd_curcanv->cv_font_fg_color;
else
VideoOffset++;
BitMask >>= 1;
@ -920,8 +920,6 @@ void gr_close_font( grs_font * font )
gr_free_bitmap_data(&font->ft_parent_bitmap);
#endif
d_free( font );
}
}
@ -1071,7 +1069,6 @@ grs_font * gr_init_font( char * fontname )
colormap[TRANSPARENCY_COLOR] = TRANSPARENCY_COLOR; // changed from colormap[255] = 255 to this for macintosh
decode_data(font->ft_data, ptr - font->ft_data, colormap, freq );
}
PHYSFS_close(fontfile);

View file

@ -1,5 +1,9 @@
D2X-Rebirth Changelog
20120330
--------
2d/font.c: Make 2d/font.c more similar between d1x-rebirth and d2x-rebirth
20120329
--------
main/multi.c, main/multi.h, main/net_udp.c, main/net_udp.h: Immediately relay pdata packets from clients to others which should reduce artificial delay; allow sending of pdata packet when firing if enough time has passed since last update; only answer full game info requests 2 times per second and lite info 8 times per second