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

Window height resized to 600px after loading

Offen
#1,036 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
8.2k
Forks
380
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.