escape key doesn't close the application in release mode anymore
This commit is contained in:
parent
1f1a0ee48d
commit
362f1a8165
1 changed files with 9 additions and 4 deletions
|
|
@ -12,7 +12,7 @@ game_update :: proc() -> bool {
|
||||||
@(export)
|
@(export)
|
||||||
game_init_window :: proc() {
|
game_init_window :: proc() {
|
||||||
rl.SetConfigFlags({.WINDOW_RESIZABLE})
|
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.SetWindowPosition(200, 200)
|
||||||
rl.SetWindowMinSize(1400, 800)
|
rl.SetWindowMinSize(1400, 800)
|
||||||
}
|
}
|
||||||
|
|
@ -25,6 +25,11 @@ game_init :: proc() {
|
||||||
|
|
||||||
game_hot_reloaded(g_mem)
|
game_hot_reloaded(g_mem)
|
||||||
|
|
||||||
|
|
||||||
|
when !ODIN_DEBUG {
|
||||||
|
rl.SetExitKey(nil)
|
||||||
|
}
|
||||||
|
|
||||||
current_monitor := rl.GetCurrentMonitor()
|
current_monitor := rl.GetCurrentMonitor()
|
||||||
g_mem.monitor_info = MonitorInformation {
|
g_mem.monitor_info = MonitorInformation {
|
||||||
max_width = auto_cast rl.GetMonitorWidth(current_monitor),
|
max_width = auto_cast rl.GetMonitorWidth(current_monitor),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue