lm3s1968: RIT128x96x4 OLED display driver.
[bertos.git] / bertos / gfx / gfx.h
index da10433dc10b887a56140839b320e035b595ece5..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
        /**