Updated README. Added example config. Added default font for ease of use.

This commit is contained in:
2025-12-04 15:32:42 +02:00
parent 77514c4d13
commit 58abb91c64
5 changed files with 23 additions and 5 deletions

View File

@@ -63,6 +63,7 @@ int main(int argc, char **argv)
// Change screen size from JSON
json_extract(cfg, "width", screen_width);
json_extract(cfg, "height", screen_height);
json_extract(cfg, "font", default_font_name);
// Create surface
main_surface = SDL_CreateRGBSurfaceWithFormat(0, screen_width, screen_height, 32, SDL_PIXELFORMAT_RGBA8888);