made windowClosing work by using a flag
dont render if width or height < 1
Authored by: matzon 2008-06-08
Parent: [r3101]
Child: [r3103]