Browse Source

Set raylib font size to 100 on loading

master
Kenneth Bruen 8 months ago
parent
commit
4cc635f3bf
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 6
      src/main.zig

6
src/main.zig

@ -27,9 +27,9 @@ pub fn main() !void {
var station_id_buffer: [10]u8 = .{0} ** 10; var station_id_buffer: [10]u8 = .{0} ** 10;
var appState = AppState{ var appState = AppState{
.allocator = allocator, .allocator = allocator,
.font = rl.LoadFontFromMemory(".ttf", noto, noto.len, 64, cp, cp_cnt), .font = rl.LoadFontFromMemory(".ttf", noto, noto.len, 100, cp, cp_cnt),
.db_font = raylib.LoadFontEx("./private/db.ttf", 64, cp, cp_cnt), .db_font = raylib.LoadFontEx("./private/db.ttf", 100, cp, cp_cnt),
.ns_font = raylib.LoadFontEx("./private/ns.ttf", 64, cp, cp_cnt), .ns_font = raylib.LoadFontEx("./private/ns.ttf", 100, cp, cp_cnt),
.home_screen_state = .{ .home_screen_state = .{
.station_name = std.ArrayListUnmanaged(u8).initBuffer(&station_name_buffer), .station_name = std.ArrayListUnmanaged(u8).initBuffer(&station_name_buffer),
.station_name_max_len = station_name_buffer.len - 1, .station_name_max_len = station_name_buffer.len - 1,

Loading…
Cancel
Save