X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgfx%2Fgfx.h;h=eeef5bc7b9dd19887997eb96ccae49e7bb9a6095;hb=27b7177adf935135af60b935fe0701f7210ed3f7;hp=dfdb5df4b89482e5b4b18b39f756c54c53330829;hpb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;p=bertos.git diff --git a/bertos/gfx/gfx.h b/bertos/gfx/gfx.h index dfdb5df4..eeef5bc7 100644 --- a/bertos/gfx/gfx.h +++ b/bertos/gfx/gfx.h @@ -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 + #include void gfx_blit_P(Bitmap *bm, const pgm_uint8_t *raster); #endif