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

Game window after changed to fullscreen and windowed again #233

Closed
Redysz opened this issue Nov 21, 2020 · 5 comments
Closed

Game window after changed to fullscreen and windowed again #233

Redysz opened this issue Nov 21, 2020 · 5 comments
Labels
pygame Issue arises in pygame

Comments

@Redysz
Copy link

Redysz commented Nov 21, 2020

If I make game size fullscreen and then I again change to windowed, I won't have opportunity to move the window of a game.

A piece of code:

WIDTH = 800
HEIGHT = 600

FULLSCREEN = False
def on_key_down(key):
    global FULLSCREEN
    if key == keys.F:
        if FULLSCREEN:
            screen.surface = pygame.display.set_mode((WIDTH, HEIGHT), pygame.RESIZABLE)
        else:
            screen.surface = pygame.display.set_mode((1920, 1080), pygame.FULLSCREEN)
        FULLSCREEN = not FULLSCREEN

Then my game window is on top and left and I can't change it
image

@fajnydev
Copy link

I have the same issue +1

@fillwithjoy1
Copy link

@lordmauve
Yep I've got this issue too

@lordmauve lordmauve added the pygame Issue arises in pygame label Jan 2, 2022
@lordmauve
Copy link
Owner

Does this still happen under PyGame 2.1.2?

@lordmauve
Copy link
Owner

This was fixed in Pygame 2.0.2: pygame/pygame#2460

@fillwithjoy1

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pygame Issue arises in pygame
Projects
None yet
Development

No branches or pull requests

4 participants