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)
|
||||
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),
|
||||
|
|
@ -37,11 +42,11 @@ game_init :: proc() {
|
|||
}
|
||||
|
||||
g_mem.atlas_render_texture_target = rl.LoadRenderTexture(256, 256)
|
||||
g_mem.atlas_render_size = 256
|
||||
g_mem.atlas_render_size = 256
|
||||
|
||||
checkered_img := rl.GenImageChecked(256, 256, 256 / 4, 256 / 4, rl.GRAY, rl.DARKGRAY)
|
||||
defer rl.UnloadImage(checkered_img)
|
||||
g_mem.atlas_checked_background.texture = rl.LoadTextureFromImage(checkered_img)
|
||||
defer rl.UnloadImage(checkered_img)
|
||||
g_mem.atlas_checked_background.texture = rl.LoadTextureFromImage(checkered_img)
|
||||
|
||||
rl.SetTargetFPS(rl.GetMonitorRefreshRate(current_monitor))
|
||||
rl.GuiLoadStyle("./styles/style_candy.rgs")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue