mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[quiz] Fix quiz_print to fit screen height
This commit is contained in:
committed by
Romain Goyet
parent
4f1eba412d
commit
677cf936b6
@@ -17,7 +17,7 @@ void quiz_print(const char * message) {
|
||||
int line_height = font->glyphSize().height();
|
||||
ctx->drawString(message, KDPoint(0, line_y), font);
|
||||
line_y += line_height;
|
||||
if (line_y > Ion::Display::Height) {
|
||||
if (line_y + line_height > Ion::Display::Height) {
|
||||
line_y = 0;
|
||||
// Clear screen maybe?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user