--- a/application/main.c Sun Nov 29 20:03:06 2015 +0100 +++ b/application/main.c Sun Nov 29 21:43:03 2015 +0100 @@ -47,12 +47,16 @@ void draw(UiEvent *event, UiGraphics *g, void *data) { int width = g->width; int height = g->height; + printf("rec[%d,%d]\n", width, height); ui_graphics_color(g, 64, 64, 64); ui_draw_rect(g, 0, 0, width, height, TRUE); UiTextLayout *text = ui_text(g); ui_text_setfont(text, "Monospace", 12); ui_text_setstring(text, "Hello World"); + int w, h; + ui_text_getsize(text, &w, &h); + printf("ext[%d,%d]\n", w, h); ui_graphics_color(g, 255, 255, 255); ui_draw_text(g, 50, 50, text);