-
Notifications
You must be signed in to change notification settings - Fork 31
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
Window content not resizing on Windows #295
Comments
Use |
@bvssvni the problem is not the draw size (both |
Here is the fixed code:
|
The window.next() instead of .events() fixed it, thanks! |
Thanks @bvssvni ! |
@bvssvni Thanks! That's great that this works. Although it seems the tutorials and examples could use some updating as some of them use events.next() currently. |
I'm having problems handling resizing windows on Windows using
piston_window
. Resizing the window keeps everything I draw at the bottom-left corner of the window with the exact same intial size.I tried both with the default (Glutin according to the docs) and SDL2 window and the problem persists, which I guess means the problem is in
gfx_graphics
.Here's a simple test case:
Dependencies:
As you can see I'm using
c.get_view_size()
and the reported size changes as I resize (which I guess means the framebuffer is being resized) but the actual drawing in the window stays as 640x480 at (0, 0).The text was updated successfully, but these errors were encountered: