X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Flcd_gfx_qt.h;h=93499a24a58895d382c5dec93c94b58c22576bdc;hb=19e8a3eae634fead9c233f0c33adfb24c06365d4;hp=7893dc7305079d634a19bfb02035bee6fe53ab9d;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/drv/lcd_gfx_qt.h b/bertos/drv/lcd_gfx_qt.h index 7893dc73..93499a24 100644 --- a/bertos/drv/lcd_gfx_qt.h +++ b/bertos/drv/lcd_gfx_qt.h @@ -32,7 +32,7 @@ * * \version $Id$ * - * \author Bernardo Innocenti + * \author Bernie Innocenti * * \brief Custom control for graphics LCD emulation (interface) */ @@ -84,6 +84,7 @@ public: protected: virtual QSizePolicy sizePolicy() const; virtual QSize sizeHint() const; + virtual QSize minimumSizeHint() const; virtual void paintEvent(QPaintEvent *event); // Operations @@ -99,7 +100,7 @@ protected: QColor fg_color, bg_color; /// Pixel storage - unsigned char raster[(WIDTH * HEIGHT) / 8]; + unsigned char raster[(WIDTH + 7 / 8) * HEIGHT]; }; #endif // DRV_LCD_GFX_QT_H