From: bernie Date: Mon, 23 Jan 2006 23:11:27 +0000 (+0000) Subject: Use RASTER_SIZE() to compute... err... the raster size. X-Git-Tag: 1.0.0~761 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0d276e51619c092016aebb0955cd83b5022d6c28;p=bertos.git Use RASTER_SIZE() to compute... err... the raster size. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@480 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/lcd_gfx.c b/drv/lcd_gfx.c index 9a25cf09..7784c63a 100755 --- a/drv/lcd_gfx.c +++ b/drv/lcd_gfx.c @@ -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. *#* @@ -222,7 +225,7 @@ * 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 */ diff --git a/drv/lcd_gfx_qt.cpp b/drv/lcd_gfx_qt.cpp index e4582a35..b8e91cfa 100755 --- a/drv/lcd_gfx_qt.cpp +++ b/drv/lcd_gfx_qt.cpp @@ -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 */