mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[Kandinsky] Create a KDText class for text measurement
Change-Id: Ie3ecd402b5476f41a2f8694a276f62495fbcdbd1
This commit is contained in:
@@ -8,7 +8,7 @@ extern "C" {
|
||||
void print(const char * message) {
|
||||
static int line_y = 0;
|
||||
KDContext * ctx = KDIonContext::sharedContext();
|
||||
int line_height = ctx->stringSize("M").height();
|
||||
int line_height = KDText::stringSize("M").height();
|
||||
ctx->drawString(message, KDPoint(0, line_y), 0);
|
||||
line_y += line_height;
|
||||
if (line_y > ION_SCREEN_HEIGHT) {
|
||||
|
||||
Reference in New Issue
Block a user