static void _update_sizing(Evas_Object *term) { Evas_Coord mw = 1, mh = 1, w, h; termio_config_update(term); evas_object_size_hint_min_get(term, &mw, &mh); if (mw < 1) mw = 1; if (mh < 1) mh = 1; w = tsize_w / mw; h = tsize_h / mh; evas_object_size_hint_request_set(term, w * mw, h * mh); expecting_resize = 1; }
static void _update_sizing(Font_Ctx *ctx) { Evas_Coord mw = 1, mh = 1, w, h; termio_config_update(ctx->term); evas_object_size_hint_min_get(ctx->term, &mw, &mh); if (mw < 1) mw = 1; if (mh < 1) mh = 1; w = ctx->tsize_w / mw; h = ctx->tsize_h / mh; evas_object_size_hint_request_set(ctx->term, w * mw, h * mh); ctx->expecting_resize = 1; }