mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[quiz] Update the runner to use the new KDFont API
This commit is contained in:
committed by
LeaNumworks
parent
aeab06513e
commit
fd136f71e7
@@ -13,8 +13,9 @@ void quiz_print(const char * message) {
|
||||
#else
|
||||
static int line_y = 0;
|
||||
KDContext * ctx = KDIonContext::sharedContext();
|
||||
int line_height = KDText::stringSize("M").height();
|
||||
ctx->drawString(message, KDPoint(0, line_y));
|
||||
const KDFont * font = KDFont::LargeFont;
|
||||
int line_height = font->glyphSize().height();
|
||||
ctx->drawString(message, KDPoint(0, line_y), font);
|
||||
line_y += line_height;
|
||||
if (line_y > Ion::Display::Height) {
|
||||
line_y = 0;
|
||||
|
||||
Reference in New Issue
Block a user