summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/widget/page.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-07-02 20:32:50 +0200
committerUros Majstorovic <majstor@majstor.org>2020-07-02 20:32:50 +0200
commitdabbf944711eef384dcc87b2d49843bedcb1e84a (patch)
treebab3fc421c7df9c200ec054ed4a2ec103376f383 /code/fe310/eos/eve/widget/page.c
parentd3d239fa9cb25b4a3656c09dbb38f5743d51a213 (diff)
copy/paste for text widget implemented
Diffstat (limited to 'code/fe310/eos/eve/widget/page.c')
-rw-r--r--code/fe310/eos/eve/widget/page.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/fe310/eos/eve/widget/page.c b/code/fe310/eos/eve/widget/page.c
index fad44ad..4c35bda 100644
--- a/code/fe310/eos/eve/widget/page.c
+++ b/code/fe310/eos/eve/widget/page.c
@@ -21,8 +21,8 @@ void eve_pagew_init(EVEPageWidget *widget, EVERect *g, char *title, EVEFont *fon
widget->title = title;
widget->font = font;
widget->page = page;
- if (_widget->g.w == 0) _widget->g.w = eve_font_string_width(font, widget->title);
- if (_widget->g.h == 0) _widget->g.h = eve_font_height(font);
+ if (_widget->g.w == 0) _widget->g.w = eve_font_strw(font, widget->title);
+ if (_widget->g.h == 0) _widget->g.h = eve_font_h(font);
}
int eve_pagew_touch(EVEWidget *_widget, EVEPage *page, uint8_t tag0, int touch_idx, EVERect *focus) {