chore: move window scale const to emu.zig
This commit is contained in:
		@@ -8,12 +8,12 @@ const Scheduler = @import("core/scheduler.zig").Scheduler;
 | 
				
			|||||||
const FpsTracker = @import("core/util.zig").FpsTracker;
 | 
					const FpsTracker = @import("core/util.zig").FpsTracker;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const pitch = @import("core/ppu.zig").framebuf_pitch;
 | 
					const pitch = @import("core/ppu.zig").framebuf_pitch;
 | 
				
			||||||
 | 
					const scale = @import("core/emu.zig").win_scale;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const emu = @import("core/emu.zig");
 | 
					const emu = @import("core/emu.zig");
 | 
				
			||||||
const asString = @import("core/util.zig").asString;
 | 
					const asString = @import("core/util.zig").asString;
 | 
				
			||||||
const log = std.log.scoped(.GUI);
 | 
					const log = std.log.scoped(.GUI);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const scale = 4;
 | 
					 | 
				
			||||||
const default_title: []const u8 = "ZBA";
 | 
					const default_title: []const u8 = "ZBA";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
window: *SDL.SDL_Window,
 | 
					window: *SDL.SDL_Window,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,9 +12,11 @@ const Thread = std.Thread;
 | 
				
			|||||||
const Atomic = std.atomic.Atomic;
 | 
					const Atomic = std.atomic.Atomic;
 | 
				
			||||||
const Allocator = std.mem.Allocator;
 | 
					const Allocator = std.mem.Allocator;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const sync_audio = false;
 | 
					// TODO: Move these to a TOML File
 | 
				
			||||||
const sync_video: RunKind = .UnlimitedFPS;
 | 
					const sync_audio = true; // Enable Audio Sync
 | 
				
			||||||
pub const cpu_logging = false;
 | 
					const sync_video: RunKind = .LimitedFPS; // Configure Video Sync
 | 
				
			||||||
 | 
					pub const win_scale = 3; // 1x, 2x, 3x, etc. Window Scaling
 | 
				
			||||||
 | 
					pub const cpu_logging = false; // Enable detailed CPU logging
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// 228 Lines which consist of 308 dots (which are 4 cycles long)
 | 
					// 228 Lines which consist of 308 dots (which are 4 cycles long)
 | 
				
			||||||
const cycles_per_frame: u64 = 228 * (308 * 4); //280896
 | 
					const cycles_per_frame: u64 = 228 * (308 * 4); //280896
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user