X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgfx%2Fgfx.h;h=eeef5bc7b9dd19887997eb96ccae49e7bb9a6095;hb=82aa9864bc5accc468d3c9ed109a8b44ef36da94;hp=da10433dc10b887a56140839b320e035b595ece5;hpb=6eb6ebb5ae5953a27977f0ef66a36344462b949a;p=bertos.git diff --git a/bertos/gfx/gfx.h b/bertos/gfx/gfx.h index da10433d..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 /**