Finding screen dimensions

Hi,

Im using the glut utility kit and in my program i can switch from fullscreent to windowed mode, but i dnt use the gamemode feature. My problem is that i use the mouse in the program and i need to be able to find the dimensions of the screen when going into fullscreen mode to get the mouse in the right spot.

All responses are greatly apreciated

but i dnt use the gamemode feature
Why not, and what did you use?

I don’t use the game mode feature because I have not quite gotten a handle on all the commands to use it. I’ve used it before and I couldn’t figure out how to get my program back into window mode. I am using the “glutFullscreen();” command to place my program into fullscreen mode.

glutGet(GLUT_SCREEN_WIDTH)

thanks a ton Rigid body

You may also find this handy:
http://www.opengl.org/documentation/specs/glut/spec3/spec3.html