[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Screen Centering Trouble



os.environ["SDL_VIDEO_CENTERED"] = "1" ## Center the graphics window.

This line used to work for putting the SDL window at the screen's center, but now it doesn't. I see that there was a recent thread about this, but I'm not sure what I'm doing wrong here.

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32
>>> import pygame
>>> pygame.ver
'1.7.1release'

I installed the latest Python 2.5-based edition of Pygame straight from pygame.org, so this shouldn't be a problem.