Changed window size to match font size

This commit is contained in:
nedko 2024-03-06 10:55:13 +02:00
parent 284824ef62
commit 03b01c1ad0
3 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ bool init_sdl(SDL_Window **window)
(*window) = SDL_CreateWindow("DMM Display",
SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED,
1280, 720,
FONT_SIZE * 6, FONT_SIZE,
SDL_WINDOW_SHOWN);
if (nullptr == (*window))
{

View File

@ -11,6 +11,7 @@
# include "DMM_HID.h"
#endif
#define FONT_SIZE 100
#define UI_FPS 30
bool init_sdl(SDL_Window **window);

View File

@ -76,7 +76,7 @@ int main(int argc, char **argv)
return -1;
}
font = TTF_OpenFont("./font.ttf", 100);
font = TTF_OpenFont("./font.ttf", FONT_SIZE);
while (!quit)
{