On Sun, Feb 24, 2008 at 4:33 PM, Brian Fisher <
brian@xxxxxxxxxxxxxxxxxxx> wrote:
This script creates a centered window for me on Windows XP with 1.8.0rc3
----------------------------------
import pygame
import os
print pygame.ver
print pygame.get_sdl_version()
pygame.init()
os.environ["SDL_VIDEO_CENTERED"] = "1"
pygame.display.set_mode((320,240))
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT or (event.type == pygame.KEYDOWN
and event.key == pygame.K_ESCAPE):
running = 0
pygame.display.flip()
----------------------------------
if it doesn't work for you, what OS are you running, and what console
output did you get (i.e. what version of pygame and sdl)?