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

Window height resized to 600px after loading

Đang mở
#1,036 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
8.2k
Fork
380
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.