Is this a bug? window size changed #8416
Unanswered
gmae199boy
asked this question in
Q&A
Replies: 1 comment
-
I think the problem is that I'm using dual monitors. My main monitor is 4K and my second monitor is 2K, but the size of the window seems to keep changing every time I move it to the other monitor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
version: 0.10
OS: windows11
develop env: WSL2 with WSLg
Hi there. I'm new to bevy, and new to game development.
I'm currently stuck on a strange phenomenon that is preventing me from making progress.
When I first turn on the computer and run the
cargo run
command, everything comes out fine. But from the second time, the window is output smaller than the first time. However, the mouse coordinates do not change.The coordinates of the sprite in the screenshot below are (0, 0), and the size of the window is (720, 1080). In the first screenshot, it is properly positioned at (0, 0), but from the second on, the window is smaller than that and the sprite is cut off. If I hover the mouse cursor to the lower left, both are properly close to (0, 0). What am I doing wrong?
P.S. I'm currently writing logic to change the color of the sprite when hovering over it, but the coordinates and size are exactly the same as the sprite, and from the second time I hover over it, it changes color even if I don't hover over the sprite, but hover a little to the side. In the first case, you have to hover completely over the sprite to change the color.
Beta Was this translation helpful? Give feedback.
All reactions