Przeglądaj źródła

Make the font a bit smaller

Luna Stadler 4 lat temu
rodzic
commit
e08a4939a5
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      zig/sdl/hello_sdl.zig

+ 1 - 1
zig/sdl/hello_sdl.zig

@ -35,7 +35,7 @@ pub fn main() !void {
35 35
    defer c.TTF_Quit();
36 36
37 37
    var font_file = if (args.len > 1) args[1] else "./FantasqueSansMono-Regular.ttf";
38
    const font = c.TTF_OpenFont(font_file, 20) orelse {
38
    const font = c.TTF_OpenFont(font_file, 16) orelse {
39 39
        c.SDL_Log("Unable to load font: %s", c.TTF_GetError());
40 40
        return error.TTFInitializationFailed;
41 41
    };