scaling objects wrt screen coordinates

Hi,

I have a rectangle with a fixed size being displayed on the screen. I want to normalize it to screen coordinates from pixel coordinates so that the height and width of the rectangle change with the change in the screen dimensions. Can any one help ?

Thanks

You can use the technique in this thread to make GUI elements scale with the screen resolution. It involves setting up the GUI matrix before rendering these elements. If you only want one element to scale, you can set the matrix back again after rendering it.