Small cleanup/refactor.

This commit is contained in:
2026-06-11 09:11:07 +02:00
parent 01abcfead0
commit 02ee850e82
2 changed files with 17 additions and 18 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ main :: proc() {
// Init the emu 8 "cpu" // Init the emu 8 "cpu"
system := emu.init() system := emu.init()
// TODO: move this into a gui component // @TODO: move this into a gui component
// load rom, hardcoded for now, will eventually be cli or gui // load rom, hardcoded for now, will eventually be cli or gui
err := emu.load_rom(&system, "./test_roms/7-beep.ch8") err := emu.load_rom(&system, "./test_roms/7-beep.ch8")
if err != nil { if err != nil {
-1
View File
@@ -91,7 +91,6 @@ run_gui :: proc(sim: ^Simulator) {
} }
// @TODO: If this grows lets move it into its own file // @TODO: If this grows lets move it into its own file
calc_layout :: proc(screen_width: f32, screen_height: f32) -> Layout { calc_layout :: proc(screen_width: f32, screen_height: f32) -> Layout {
sidebar_width := screen_width * SIDEBAR_PERCENT sidebar_width := screen_width * SIDEBAR_PERCENT
content_height := screen_height - CONTROL_BAR_H - STATUS_BAR_H content_height := screen_height - CONTROL_BAR_H - STATUS_BAR_H