Skip to content

Commit 12582aa

Browse files
authored
Fix printTextSmall in hello_world example
Needs os_FontSelect(0); first to be sure that the small font will be used.
1 parent c80181a commit 12582aa

File tree

1 file changed

+1
-0
lines changed
  • examples/hello_world/src

1 file changed

+1
-0
lines changed

examples/hello_world/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ void printText(const char *text, uint8_t xpos, uint8_t ypos) {
4343

4444
/* Draw small text at the given X/Y location */
4545
void printTextSmall(const char *text, uint8_t xpos, uint8_t ypos) {
46+
os_FontSelect(0); // sets small font (1 == big, see docs)
4647
os_FontDrawText(text, xpos, ypos);
4748
}

0 commit comments

Comments
 (0)