pygame fullscreen on second monitor

Viewed 344

I am trying to have my pygame window open on my second monitor. Executing

screen = pygame.display.set_mode(size, HWSURFACE | DOUBLEBUF | FULLSCREEN)

always opens the window on the first monitor. I did manage to get the game running on 2nd monitor with borderless windowed with the following:

display_info = py.display.Info()
size = width, height = display_info.current_w, display_info.current_h
os.environ['SDL_VIDEO_WINDOW_POS'] = str(width) + ",0"
screen = pygame.display.set_mode(size, HWSURFACE | DOUBLEBUF | NOFRAME)

Is there a similar workaround for fullscreen?

0 Answers
Related