From 53c664bc61ecc3eaed347064b054c3de9bfe4bab Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Tue, 5 Sep 2023 21:39:39 -0500 Subject: [PATCH] chore(ui): default to 1600x900 window --- src/ui/imgui.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/imgui.zig b/src/ui/imgui.zig index 29bb7d8..a4bd396 100644 --- a/src/ui/imgui.zig +++ b/src/ui/imgui.zig @@ -15,7 +15,7 @@ pub const State = struct { const default_rom_title: [12:0]u8 = "No Title\x00\x00\x00\x00".*; title: [12:0]u8 = default_rom_title, - dim: Dimensions = .{ .width = 1280, .height = 720 }, + dim: Dimensions = .{ .width = 1600, .height = 900 }, }; pub fn draw(state: *const State, top_tex: GLuint, btm_tex: GLuint, arm946es: *Arm946es) bool { @@ -23,8 +23,8 @@ pub fn draw(state: *const State, top_tex: GLuint, btm_tex: GLuint, arm946es: *Ar zgui.backend.newFrame(@floatFromInt(state.dim.width), @floatFromInt(state.dim.height)); { - const w: f32 = @floatFromInt((nds_width * 3) / 2); - const h: f32 = @floatFromInt((nds_height * 3) / 2); + const w: f32 = @floatFromInt(nds_width * 2); + const h: f32 = @floatFromInt(nds_height * 2); const provided = std.mem.sliceTo(&state.title, 0); const window_title = if (provided.len == 0) &State.default_rom_title else provided;