escape key doesn't close the application in release mode anymore

This commit is contained in:
Stefan Stefanov 2024-04-23 09:41:04 +03:00
parent 1f1a0ee48d
commit 362f1a8165

View file

@ -12,7 +12,7 @@ game_update :: proc() -> bool {
@(export)
game_init_window :: proc() {
rl.SetConfigFlags({.WINDOW_RESIZABLE})
rl.InitWindow(1400, 800, "YAAP - Yet Another Atlas Packer, Powered by Raylib & Odin")
rl.InitWindow(1400, 800, "YAAP - Yet Another Atlas Packer")
rl.SetWindowPosition(200, 200)
rl.SetWindowMinSize(1400, 800)
}
@ -25,6 +25,11 @@ game_init :: proc() {
game_hot_reloaded(g_mem)
when !ODIN_DEBUG {
rl.SetExitKey(nil)
}
current_monitor := rl.GetCurrentMonitor()
g_mem.monitor_info = MonitorInformation {
max_width = auto_cast rl.GetMonitorWidth(current_monitor),