emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1.03k stars 98 forks source link

Borderless is not working properly on Windows #162

Open valkum opened 4 years ago

valkum commented 4 years ago

Currently resizeable, borderless and titleless on MS Windows will set the flag WS_OVERLAPPEDWINDOW | WS_THICKFRAME | WS_MAXIMIZEBOX | WS_THICKFRAME which creates some problems according to https://github.com/rossy/borderless-window/blob/master/borderless-window.c

They actually start with WS_OVERLAPPEDWINDOW | WS_SIZEBOX and "remove the borders by expanding the client area"

Would it be possible to implement this in minifb?

emoon commented 4 years ago

I guess this can be changed. Would you be willing to do a PR with the required changes?

valkum commented 4 years ago

I can try sometime next week.