Do this BEFORE running your own code. I'm still looking for a portable way for InitGraphics() to launch it automatically when necessary.
The graphics server is a shared resource, and multitasking (e.g. Maze in one window, Boggle in another) fails by default. You may be able to work around this by running server instances on different ports, but this hasn't been tested.
Graphics should be confined within the gray rectangle, but drawing outide this has rather unpredictable effects. Resizing the outer window (by dragging the corner) does nothing useful.
No idea how to do this, so both functions just return a const 100 pixels/inch.
This may not give the scaling you wanted!