projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix size hinting for LCD widget
[bertos.git]
/
bertos
/
drv
/
lcd_gfx_qt.h
diff --git
a/bertos/drv/lcd_gfx_qt.h
b/bertos/drv/lcd_gfx_qt.h
index 9101db52793ea5317231e6ea86393cac9dbb8f45..93499a24a58895d382c5dec93c94b58c22576bdc 100644
(file)
--- a/
bertos/drv/lcd_gfx_qt.h
+++ b/
bertos/drv/lcd_gfx_qt.h
@@
-84,6
+84,7
@@
public:
protected:
virtual QSizePolicy sizePolicy() const;
virtual QSize sizeHint() const;
protected:
virtual QSizePolicy sizePolicy() const;
virtual QSize sizeHint() const;
+ virtual QSize minimumSizeHint() const;
virtual void paintEvent(QPaintEvent *event);
// Operations
virtual void paintEvent(QPaintEvent *event);
// Operations
@@
-99,7
+100,7
@@
protected:
QColor fg_color, bg_color;
/// Pixel storage
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
};
#endif // DRV_LCD_GFX_QT_H