Home
last modified time | relevance | path

Searched refs:gr_font (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/minui/
H A Dgraphics.c44 static GRFont* gr_font = NULL; variable
67 return gr_font->cwidth * strlen(s); in gr_measure()
72 *x = gr_font->cwidth; in gr_font_size()
73 *y = gr_font->cheight; in gr_font_size()
111 GRFont *font = gr_font; in gr_text()
270 gr_font = calloc(sizeof(*gr_font), 1); in gr_init_font()
272 int res = res_create_alpha_surface("font", &(gr_font->texture)); in gr_init_font()
277 gr_font->cwidth = gr_font->texture->width / 96; in gr_init_font()
278 gr_font->cheight = gr_font->texture->height / 2; in gr_init_font()
283 gr_font->texture = malloc(sizeof(*gr_font->texture)); in gr_init_font()
[all …]
/OK3568_Linux_fs/external/recovery/minui/
H A Dgraphics.c47 static GRFont* gr_font = NULL; variable
76 return gr_font->char_width * strlen(s); in gr_measure()
81 *x = gr_font->char_width; in gr_font_size()
82 *y = gr_font->char_height; in gr_font_size()
165 GRFont *font = gr_font; in gr_text()
347 gr_font = calloc(sizeof(*gr_font), 1); in gr_init_font()
349 int res = res_create_alpha_surface("font", &(gr_font->texture)); in gr_init_font()
354 gr_font->char_width = gr_font->texture->width / 96; in gr_init_font()
355 gr_font->char_height = gr_font->texture->height / 2; in gr_init_font()
360 gr_font->texture = malloc(sizeof(*gr_font->texture)); in gr_init_font()
[all …]