Small cleanup/refactor.
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ main :: proc() {
|
||||
// Init the emu 8 "cpu"
|
||||
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
|
||||
err := emu.load_rom(&system, "./test_roms/7-beep.ch8")
|
||||
if err != nil {
|
||||
|
||||
@@ -91,7 +91,6 @@ run_gui :: proc(sim: ^Simulator) {
|
||||
}
|
||||
|
||||
// @TODO: If this grows lets move it into its own file
|
||||
|
||||
calc_layout :: proc(screen_width: f32, screen_height: f32) -> Layout {
|
||||
sidebar_width := screen_width * SIDEBAR_PERCENT
|
||||
content_height := screen_height - CONTROL_BAR_H - STATUS_BAR_H
|
||||
|
||||
Reference in New Issue
Block a user