X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=drv%2Flcd_gfx_qt.cpp;h=38d0753863f18176a079276b23fdeecbe478e534;hb=1ab5fa0763879ab997884c8bc88631b69205a191;hp=8f3981e43face603578ff3f1db8e275e6da2d628;hpb=6b2099c56772961182353617a8d4b839f6a1a6db;p=bertos.git diff --git a/drv/lcd_gfx_qt.cpp b/drv/lcd_gfx_qt.cpp old mode 100755 new mode 100644 index 8f3981e4..38d07538 --- a/drv/lcd_gfx_qt.cpp +++ b/drv/lcd_gfx_qt.cpp @@ -1,8 +1,33 @@ /** * \file * * * \version $Id$ @@ -14,6 +39,12 @@ /*#* *#* $Log$ + *#* Revision 1.9 2006/07/19 12:56:25 bernie + *#* Convert to new Doxygen style. + *#* + *#* Revision 1.8 2006/05/28 12:17:57 bernie + *#* Drop almost all the Qt3 cruft. + *#* *#* Revision 1.7 2006/04/27 05:43:08 bernie *#* Fix naming conventions. *#* @@ -34,7 +65,6 @@ *#* *#* Revision 1.1 2006/01/16 03:51:35 bernie *#* Add LCD Qt emulator. - *#* *#*/ #include "lcd_gfx_qt.h" @@ -42,17 +72,10 @@ #include #include // CONFIG_BITMAP_FMT -#if _QT < 4 - #include - #include - #include - #include -#else - #include - #include - #include - #include -#endif +#include +#include +#include +#include // Display colors #define LCD_FG_COLOR 0x0, 0x0, 0x0 @@ -121,7 +144,7 @@ void EmulLCD::writeRaster(uint8_t *new_raster) uint8_t v = 0; for (int xbit = 0; xbit < 8; ++xbit) v |= (new_raster[(xbyte * 8 + xbit) + (y / 8) * WIDTH] & (1 << (y%8)) ) - ? (1 << (7 - xbit)) : 0; + ? 0 : (1 << (7 - xbit)); raster[y * ((WIDTH + 7) / 8) + xbyte] = v; } @@ -139,17 +162,17 @@ void EmulLCD::writeRaster(uint8_t *new_raster) #include #include -/*! +DECLARE_WALL(wall_before_raster, WALL_SIZE) +/** * Raster buffer to draw into. * * Bits in the bitmap bytes have vertical orientation, * as required by the LCD driver. */ -DECLARE_WALL(wall_before_raster, WALL_SIZE) static uint8_t lcd_raster[RASTER_SIZE(EmulLCD::WIDTH, EmulLCD::HEIGHT)]; DECLARE_WALL(wall_after_raster, WALL_SIZE) -/*! Default LCD bitmap */ +/** Default LCD bitmap */ struct Bitmap lcd_bitmap; /*extern "C"*/ void lcd_init(void)