Use RASTER_SIZE() to compute... err... the raster size.
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 23 Jan 2006 23:11:27 +0000 (23:11 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 23 Jan 2006 23:11:27 +0000 (23:11 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@480 38d2e660-2303-0410-9eaa-f027e97ec537

drv/lcd_gfx.c
drv/lcd_gfx_qt.cpp

index 9a25cf094bb41cb315abe06fae814a689a6df901..7784c63a184b69f12105fe755e462dac15a39284 100755 (executable)
@@ -16,6 +16,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.2  2006/01/23 23:11:27  bernie
+ *#* Use RASTER_SIZE() to compute... err... the raster size.
+ *#*
  *#* Revision 1.1  2006/01/16 03:50:57  bernie
  *#* Import into DevLib.
  *#*
  * as required by the LCD driver.
  */
 DECLARE_WALL(wall_before_raster, WALL_SIZE)
-static uint8_t lcd_raster[LCD_WIDTH * ((LCD_HEIGHT + 7) / 8)];
+static uint8_t lcd_raster[RASTER_SIZE(LCD_WIDTH, LCD_HEIGHT)];
 DECLARE_WALL(wall_after_raster, WALL_SIZE)
 
 /*! Default LCD bitmap */
index e4582a358a158106df610f52a53aab9a620b77e9..b8e91cfa59a64bb700cf84974dd95d29346430e4 100755 (executable)
@@ -14,6 +14,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.3  2006/01/23 23:11:07  bernie
+ *#* Use RASTER_SIZE() to compute... err... the raster size.
+ *#*
  *#* Revision 1.2  2006/01/17 02:30:43  bernie
  *#* Fix QImage format.
  *#*
@@ -99,7 +102,7 @@ void EmulLCD::writeRaster(uint8_t *new_raster)
  * as required by the LCD driver.
  */
 DECLARE_WALL(wall_before_raster, WALL_SIZE)
-static uint8_t lcd_raster[(EmulLCD::WIDTH + 7 / 8) * EmulLCD::HEIGHT];
+static uint8_t lcd_raster[RASTER_SIZE(EmulLCD::WIDTH, EmulLCD::HEIGHT)];
 DECLARE_WALL(wall_after_raster, WALL_SIZE)
 
 /*! Default LCD bitmap */