Skip to content

Commit 4cc067c

Browse files
authored
larger font size
larger font
1 parent 5761b72 commit 4cc067c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/src/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,18 @@ void draw(mx::mxApp &app) {
7171
}
7272

7373
void draw_loading(mx::mxApp &app) {
74+
TTF_Font *fnt = app.loadFont("fonts/arial.ttf",36);
7475
SDL_SetRenderDrawColor(app.ren, 0, 0, 0, 255);
7576
SDL_RenderClear(app.ren);
7677
SDL_SetRenderTarget(app.ren, app.tex);
7778
SDL_SetRenderDrawColor(app.ren, 0, 0, 0, 255);
7879
SDL_RenderClear(app.ren);
7980
SDL_Color col = {255,255,255,255};
80-
app.printText(25, 25, "Loading...", col);
81+
app.font_printText(fnt, 25, 25, "Loading...", col);
8182
SDL_SetRenderTarget(app.ren, nullptr);
8283
SDL_RenderCopy(app.ren, app.tex, nullptr, nullptr);
8384
SDL_RenderPresent(app.ren);
85+
TTF_CloseFont(fnt);
8486
}
8587

8688
void eventProc() {

0 commit comments

Comments
 (0)