How do you disable the maximize button when using hl?


I want my window to always remain the same size with hashlink. Is it possible? Thank you!


I believe heaps + hashlink uses hlsdl - so perhaps the sdl/Window.hx file will have some clues as customizing the native window - e.g. I see RESIZABLE and BORDERLESS flags.


It is possible by modifying the heaps source code a bit. I did it here in this pull request:

If you add those changes to your heaps code, and then compile your game with -D windowDisableResize, your window will stay the same size.