Updated README. Added example config. Added default font for ease of use.
This commit is contained in:
1
main.cpp
1
main.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user