emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
980 stars 92 forks source link

Is it possible to completely remove the title bar? #317

Open Jeremy-Code-F opened 1 year ago

Jeremy-Code-F commented 1 year ago

Hi, I'm using minifb on Windows 10

image

I have setup the following window -

let mut window = Window::new(
        "",
        width, 
        height,
        WindowOptions {
            scale: minifb::Scale::X1,
            borderless: true,
            title: false,
            topmost: true,
            ..WindowOptions::default()
        },
    )
    .unwrap_or_else(|e| {
        panic!("{}", e)
    });

I was expecting since I have set borderless: true and title: false that I would have no bar at the top

But in reality the window looks like this.

image

Is there any way to remove the bar at the top?

Thanks!

emoon commented 1 year ago

Hey,

Sorry for late reply. I'm not actually sure what the expected behavior is here because it was long ago I changed that code and it might be that the flags aren't correct.