View Full Version : window resizing problem - help please

10-31-2004, 08:24 AM
I have a simple program which drawas random dots lines and polygons to the screen and cycles through dots lines and polygons by pressing the keyboard or mouse.

The problem I have is that when you resize the window it regenerates different shapes lines or dots and I want it to stay the same. Is there a way I can make it not possible for the window to be resized or so that when it is resized the dots lines or polygons stay the same.

Thanks for your help :-)

10-31-2004, 12:21 PM
Where are you randomizing the vertex positions? I'm puzzled as to why resizing should re-randomize everything but changing drawmode doesn't.

If you reseed your pseudo-random number generator (by calling srand or the equivalent) with a constant you should get the same sequence of numbers each time. But, as I said, I'm a bit hazy about what your problem is. The resize per se sounds like a red herring.