Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen on 0.99.0+ in Windows10 #268

Open
ScottWill opened this issue Dec 26, 2019 · 2 comments
Open

Fullscreen on 0.99.0+ in Windows10 #268

ScottWill opened this issue Dec 26, 2019 · 2 comments

Comments

@ScottWill
Copy link

ScottWill commented Dec 26, 2019

In version 0.98.0 the following will create a fullscreen window on my Win10 machine. Starting with 0.99.0 continuing to 0.105.0 the same code will not go into fullscreen for me in either stable or nightly on Win10. It will go fullscreen for all piston_window versions in an Ubuntu 18.04 LTS VM on the same machine.

[dependencies]
piston_window = "0.105.0"
extern crate piston_window;
use piston_window::*;

fn main() {
    
    let mut window: PistonWindow = WindowSettings::new("fullscreen test", (640, 480))
        .exit_on_esc(true)
        .fullscreen(true)
        .build()
        .unwrap_or_else(|e| { panic!("Failed to build PistonWindow: {}", e) });
        
    while let Some(e) = window.next() {
        window.draw_2d(&e, |_, g, _| {
            clear([0.5, 1.0, 0.5, 1.0], g);
        });
    }

}

not sure what info would be relevant, can provide more on request.

  • Windows 10 Pro 64-bit
  • NVIDIA GeForce GTX 1080
@cjrsacred
Copy link

Same problem.

@cjrsacred
Copy link

On win10, the "fullscreen window" is displayed on top-left of the screen with still the original size, but in Ubuntu, it will still be a moveable window. Both OS meet problem with fullscreen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants