Cast screenSize variables to floats

Because this maintains the aspect ratio when rescaling the window (it
did not work because they were integers and dividing with integers
usually gives 1, or maybe another int. It works now