chore: rename title

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-10-21 05:12:04 -03:00
parent 8e383d55d7
commit c6608748c6
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ pub fn main() anyerror!void {
defer SDL.SDL_Quit(); defer SDL.SDL_Quit();
var window = SDL.SDL_CreateWindow( var window = SDL.SDL_CreateWindow(
"Gameboy Advance Emulator", "ZBA",
SDL.SDL_WINDOWPOS_CENTERED, SDL.SDL_WINDOWPOS_CENTERED,
SDL.SDL_WINDOWPOS_CENTERED, SDL.SDL_WINDOWPOS_CENTERED,
gba_width * window_scale, gba_width * window_scale,
@ -106,7 +106,7 @@ pub fn main() anyerror!void {
SDL.SDL_RenderPresent(renderer); SDL.SDL_RenderPresent(renderer);
const fps = std.time.ns_per_s / timer.lap(); const fps = std.time.ns_per_s / timer.lap();
const title = std.fmt.bufPrint(&title_buf, "Gameboy Advance Emulator FPS: {d}", .{fps}) catch unreachable; const title = std.fmt.bufPrint(&title_buf, "ZBA FPS: {d}", .{fps}) catch unreachable;
SDL.SDL_SetWindowTitle(window, title.ptr); SDL.SDL_SetWindowTitle(window, title.ptr);
} }