From dabbf944711eef384dcc87b2d49843bedcb1e84a Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 2 Jul 2020 20:32:50 +0200 Subject: copy/paste for text widget implemented --- code/fe310/eos/eve/widget/page.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/fe310/eos/eve/widget/page.c') 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) { -- cgit v1.2.3