version 1.6 | | version 1.7 |
---|
| | |
* Graphical routines for drawing fonts. | | * Graphical routines for drawing fonts. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.7 1999/10/12 05:21:10 donut |
| | * made colored messages work even with fonts that have chars in the 0-6 range |
| | * |
* Revision 1.6 1999/10/07 21:19:00 donut | | * Revision 1.6 1999/10/07 21:19:00 donut |
* new ogl font handling, single texture for entire font | | * new ogl font handling, single texture for entire font |
* | | * |
| | |
| | |
letter = *text_ptr-FMINCHAR; | | letter = *text_ptr-FMINCHAR; |
| | |
if (!INFONT(letter)) { //not in font, draw as space | | if (!INFONT(letter) || *text_ptr<=0x06) { //not in font, draw as space |
CHECK_EMBEDDED_COLORS() else{ | | CHECK_EMBEDDED_COLORS() else{ |
VideoOffset += spacing; | | VideoOffset += spacing; |
text_ptr++; | | text_ptr++; |
| | |
| | |
get_char_width(text_ptr[0],text_ptr[1],&width,&spacing); | | get_char_width(text_ptr[0],text_ptr[1],&width,&spacing); |
| | |
if (!INFONT(letter)) { //not in font, draw as space | | if (!INFONT(letter) || *text_ptr<=0x06) { //not in font, draw as space |
CHECK_EMBEDDED_COLORS() else{ | | CHECK_EMBEDDED_COLORS() else{ |
xx += spacing; | | xx += spacing; |
text_ptr++; | | text_ptr++; |