Skip to content
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

Event not generated when resizing #615

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Event not generated when resizing #615

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
duplicate This issue or pull request already exists

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: don't know
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2012-07-07 08:41:44 +0000, Michael wrote:

====Orriginal Bug====

Tested in both Python 2.6 and 2.7, on both Windows XP Professional x86 and Windows 7 Ultimate x64.

When using the RESIZABLE flag with a Pygame display, while a VIDEORESIZE event is generated when resizing or altering the window, it doesn't generate one again if for any reason it's changed back to the size it started with (whether going back to normal from a maximize operation or simply altering the window back to its normal dimensions).

Here's an example piece of code to show you what I mean:

import pygame

pygame.display.init()
pygame.display.set_mode((640, 480), pygame.RESIZABLE)

pygame.event.set_allowed(None)
pygame.event.set_allowed([pygame.VIDEORESIZE, pygame.QUIT])

running = True

while running:
for i in pygame.event.get():
print i
if i.type == pygame.QUIT:
running = False
pygame.display.flip()

pygame.quit()

My current project uses an OpenGL viewport that adjusts its projection whenever the window size changes, so having no event for when it goes back to normal is a bit of a problem.
====Original Bug End====

We at pygame have tested and found that this is not an issue with pygame, but instead the SDL layer we use.

On 2013-06-13 04:08:33 +0000, Peter Wu wrote:

Symptomps of bug # 1430

*** This bug has been marked as a duplicate of bug 1430 ***

@SDLBugzilla SDLBugzilla added bug duplicate This issue or pull request already exists labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant