X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mware%2Ftext.c;h=692119119b32f29f444af74ea7594be07551cb0e;hb=cdf3e45aaa38fc701dceeb57e6ceedd6ca68f408;hp=fd8868fd80d7c7bc43cb7aeb645ed5fe4785aba1;hpb=1a3aed4dd1bf9448fd36e95f47280ffc042dd570;p=bertos.git diff --git a/mware/text.c b/mware/text.c index fd8868fd..69211911 100755 --- a/mware/text.c +++ b/mware/text.c @@ -15,6 +15,15 @@ /*#* *#* $Log$ + *#* Revision 1.11 2005/01/20 18:46:31 aleph + *#* Fix progmem includes. + *#* + *#* Revision 1.10 2005/01/08 09:20:12 bernie + *#* Really make it work on both architectures. + *#* + *#* Revision 1.9 2004/12/31 16:44:29 bernie + *#* Sanitize for non-Harvard processors. + *#* *#* Revision 1.8 2004/11/16 21:16:28 bernie *#* Update to new naming scheme in mware/gfx.c. *#* @@ -58,8 +67,10 @@ #include "gfx.h" #include "font.h" #include "text.h" + #include + /*! * Flags degli stili algoritmici * @@ -148,7 +159,7 @@ static int text_putglyph(char c, struct Bitmap *bm) /* Per ogni colonna di dot del glyph... */ for (i = 0; i < glyph_width; ++i) { - dots = pgm_read_byte(glyph); + dots = PGM_READ_CHAR(glyph); /* Advance to next column in glyph. * Expand: advances only once every two columns @@ -186,7 +197,7 @@ static int text_putglyph(char c, struct Bitmap *bm) } else /* No style: fast vanilla copy of glyph to line buffer */ while (glyph_width--) - *buf++ = pgm_read_byte(glyph++); + *buf++ = PGM_READ_CHAR(glyph++); return c; }