Really make it work on both architectures.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 8 Jan 2005 09:20:12 +0000 (09:20 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 8 Jan 2005 09:20:12 +0000 (09:20 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@332 38d2e660-2303-0410-9eaa-f027e97ec537

mware/text.c

index b000562c62c710e7dc4b9766794889c7867db006..5def533fa011ee6ad51089fb9ee5ecf607043354 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* 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.
  *#*
@@ -153,7 +156,11 @@ 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_CHAR(glyph);
+                       #if CPU_HARVARD
+                               dots = PGM_READ_CHAR(glyph);
+                       #else
+                               dots = *glyph;
+                       #endif
 
                        /* Advance to next column in glyph.
                         * Expand: advances only once every two columns
@@ -191,7 +198,13 @@ 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_CHAR(glyph++);
+               {
+                       #if CPU_HARVARD
+                               *buf++ = PGM_READ_CHAR(glyph++);
+                       #else
+                               *buf++ = *glyph++;
+                       #endif
+               }
 
        return c;
 }