bugfix: same fontsize for all items
parent
b090624405
commit
da4b5b295e
|
@ -15,9 +15,11 @@ ListViewEntry::ListViewEntry(int page, irect rect) : _page(page), _position(rect
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListViewEntry::draw(const Item &item) const
|
void ListViewEntry::draw(const Item &item)
|
||||||
{
|
{
|
||||||
int fontHeight = 30;
|
int fontHeight = 30;
|
||||||
|
_font = OpenFont("LiberationMono", fontHeight, 1);
|
||||||
|
SetFont(_font, BLACK);
|
||||||
|
|
||||||
irect pageButton = iRect(_position.x, _position.y, 100, _position.h - 30, ALIGN_LEFT);
|
irect pageButton = iRect(_position.x, _position.y, 100, _position.h - 30, ALIGN_LEFT);
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,12 @@ public:
|
||||||
*
|
*
|
||||||
* @param item item that shall be drawn
|
* @param item item that shall be drawn
|
||||||
*/
|
*/
|
||||||
void draw(const Item &item) const;
|
void draw(const Item &item);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int _page;
|
int _page;
|
||||||
|
ifont *_font;
|
||||||
|
|
||||||
irect _position;
|
irect _position;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue