/*#*
*#* $Log$
+ *#* Revision 1.9 2005/01/20 18:46:31 aleph
+ *#* Fix progmem includes.
+ *#*
*#* Revision 1.8 2004/11/01 15:14:07 bernie
*#* Update to current coding conventions.
*#*
#ifndef MWARE_GFX_H
#define MWARE_GFX_H
-#include <compiler.h>
#include <config.h>
+#include <compiler.h>
+#include <cpu.h>
/*! Common type for coordinates expressed in pixel units */
extern void gfx_lineTo (Bitmap *bm, coord_t x, coord_t y);
extern void gfx_setClipRect(Bitmap *bm, coord_t xmin, coord_t ymin, coord_t xmax, coord_t ymax);
-#if CPU_AVR
- #include <avr/pgmspace.h>
- extern void gfx_blit_P(Bitmap *bm, const prog_uchar *raster);
-#endif /* CPU_AVR */
+#if CPU_HARVARD
+ extern void gfx_blit_P(Bitmap *bm, const pgm_uint8_t *raster);
+#endif
#if CONFIG_GFX_VCOORDS
/*#*
*#* $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.
*#*
/* Per ogni colonna di dot del glyph... */
for (i = 0; i < glyph_width; ++i)
{
- #if CPU_HARVARD
- dots = PGM_READ_CHAR(glyph);
- #else
- dots = *glyph;
- #endif
+ dots = PGM_READ_CHAR(glyph);
/* Advance to next column in glyph.
* Expand: advances only once every two columns
}
else /* No style: fast vanilla copy of glyph to line buffer */
while (glyph_width--)
- {
- #if CPU_HARVARD
- *buf++ = PGM_READ_CHAR(glyph++);
- #else
- *buf++ = *glyph++;
- #endif
- }
+ *buf++ = PGM_READ_CHAR(glyph++);
return c;
}