a-b-street / a-b-street/abstreet

Window height resized to 600px after loading

Open
#1,036 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
8.2k
Forks
380
PR merge metrics
No merged PRs in 30d

Description

Platform: Linux (ArchLinux, Gnome 43.2, Wayland)

When starting the game with `RUST_LOG=trace RUST_BACKTRACE=1 cargo run --bin game -- --dev`, I observe the following behaviour:
- the window starts with a 800x600px size, then goes full screen, and then down to 1920x600px
- according to the window decoration, it's always maximized, so you have to click twice on the "maximize" icon to go to full screen after that.

Here are some relevant logs:
```
[2022-12-15T23:45:31Z WARN widgetry::runner] Monitor scale factor is 1, screen window is 800, but the application requires 1500. Overriding the scale factor to 1.
[2022-12-15T23:45:31Z TRACE widgetry::runner] winit event says the window was resized from 800, 600 to ScreenDims { width: 1920.0, height: 1013.0 }. But inner size is ScreenDims { width: 1920.0, height: 1013.0 }, so using that
[2022-12-15T23:45:33Z TRACE widgetry::runner] winit event says the window was resized from 1920, 1013 to ScreenDims { width: 1920.0, height: 600.0 }. But inner size is ScreenDims { width: 1920.0, height: 600.0 }, so using that
```

I'm not sure why the initial window is 800x600px. From what I understand, the issue likely lies in `glutin`, but that crate was completely rewritten recently, so if there's a bug there it's not going to get fixed.

It looks like updating `glutin` isn't a straightforward task.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.