lm3s1968: add keypad driver implementation to the example.
[bertos.git] / bertos / gfx / gfx.h
index dfdb5df4b89482e5b4b18b39f756c54c53330829..eeef5bc7b9dd19887997eb96ccae49e7bb9a6095 100644 (file)
@@ -154,7 +154,7 @@ typedef struct Image
         * Compute the size in bytes of a raster suitable for
         * holding a bitmap of \a width x \a height pixels.
         */
-       #define RAST_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
        /**
@@ -182,7 +182,7 @@ void gfx_lineTo     (Bitmap *bm, coord_t x,  coord_t y);
 void gfx_setClipRect(Bitmap *bm, coord_t xmin, coord_t ymin, coord_t xmax, coord_t ymax);
 
 #if CPU_HARVARD
-       #include <mware/pgm.h>
+       #include <cpu/pgm.h>
        void gfx_blit_P(Bitmap *bm, const pgm_uint8_t *raster);
 #endif