bugfix: same fontsize for all items

pull/23/head
JuanJakobo 2020-10-22 21:55:56 +02:00
parent b090624405
commit da4b5b295e
2 changed files with 6 additions and 2 deletions

View File

@ -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;
_font = OpenFont("LiberationMono", fontHeight, 1);
SetFont(_font, BLACK);
irect pageButton = iRect(_position.x, _position.y, 100, _position.h - 30, ALIGN_LEFT);

View File

@ -31,10 +31,12 @@ public:
*
* @param item item that shall be drawn
*/
void draw(const Item &item) const;
void draw(const Item &item);
private:
int _page;
ifont *_font;
irect _position;
};
#endif