How do you disable the maximize button when using hl?


#1

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


#2

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.


#3

It is possible by modifying the heaps source code a bit. I did it here in this pull request: https://github.com/HeapsIO/heaps/pull/696/files

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