/*#*
*#* $Log$
+ *#* Revision 1.9 2006/05/25 23:35:40 bernie
+ *#* Cleanup.
+ *#*
*#* Revision 1.8 2006/03/27 04:48:56 bernie
*#* gfx_blitImage(): New function; gfx_blitRaster(): Fix clipping bug.
*#*
* Clear the whole bitmap surface to the background color.
*
* \note This function does \b not update the current pen position.
+ * \note This function bypasses the current clipping area.
*/
void gfx_bitmapClear(Bitmap *bm)
{
/*#*
*#* $Log$
+ *#* Revision 1.15 2006/05/25 23:35:40 bernie
+ *#* Cleanup.
+ *#*
*#* Revision 1.14 2006/04/27 05:39:24 bernie
*#* Enhance text rendering to arbitrary x,y coords.
*#*
* Compute the size in bytes of a raster suitable for
* holding a bitmap of \a width x \a height pixels.
*/
- #define RASTER_SIZE(width, height) ( ((width) + 7 / 8) * (height) )
+ #define RAST_SIZE(width, height) ( ((width) + 7 / 8) * (height) )
#elif CONFIG_BITMAP_FMT == BITMAP_FMT_PLANAR_V_LSB
/**
* Compute the size in bytes of a raster suitable for
* holding a bitmap of \a width x \a height pixels.
*/
- #define RASTER_SIZE(width, height) ( (width) * (((height) + 7) / 8) )
+ #define RAST_SIZE(width, height) ( (width) * (((height) + 7) / 8) )
#else
#error Unknown value of CONFIG_BITMAP_FMT
#endif /* CONFIG_BITMAP_FMT */
+#define RASTER_SIZE RAST_SIZE /* OBSOLETE */
/* Function prototypes */
void gfx_bitmapInit (Bitmap *bm, uint8_t *raster, coord_t w, coord_t h);
/*#*
*#* $Log$
+ *#* Revision 1.5 2006/05/25 23:35:40 bernie
+ *#* Cleanup.
+ *#*
*#* Revision 1.4 2006/03/22 09:50:37 bernie
*#* Use the same format for fonts and rasters.
*#*
#define RAST_ADDR(raster, x, y, stride) ((raster) + ((y) / 8) * (stride) + (x))
#define RAST_MASK(raster, x, y) (1 << ((y) % 8))
+
#else
#error Unknown value of CONFIG_BITMAP_FMT
#endif /* CONFIG_BITMAP_FMT */