[visionegg] Re: Driving two monitors in full-screen mode?

  • From: Andrew Straw <andrew.straw@xxxxxxxxxxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Wed, 23 Jul 2003 12:53:04 +0200

Mark Tovey wrote:

Having found the docs on spanning multiple monitors with a single screen
(window), I've fiddled around with the settings for
Window width (pixels) and Window height(pixels) on the
Vision Egg - Graphics configuration screen. I've been able to produce a
1600x600 window this way. (I gather that get_default_screen() gets its
information from here...?)

Yes. (Or you could set environment variables, or you could make an instance of Screen by supplying your own values.)


What I would really like to be able to do is to produce a 1600x600 display
across both monitors in Fullscreen mode so that even the menu-bar
disappears. Is it possible to do this (in this case,
running under MacOS X)? How should I go about it?

I'm sure you've tried fullscreen mode with 1600x600, but I'm curious -- what happens?


What you want is the environment variable SDL_VIDEO_WINDOW_POS. I just submitted a patch to SDL for this to work on OS X, so you'll have to get the latest SDL. Now you can do this before you make an instance of Screen:

import os
os.environ['SDL_VIDEO_WINDOW_POS']="0,0"

This will cause the lower left corner of your window to be at the lower left corner of the main screen.

The Mac toolbar will still be at the top of the display, however. I'll think about how to get rid of this when not in fullscreen mode.

Cheers!
Andrew

======================================
The Vision Egg mailing list
Archives: //www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: