So I have some code for scaling graphics to the size of a users screen by dividing the size of an \'Ideal\' screen by the size of the users screen. Hers is a code snippet of wha
If you're talking about this GameContainer class, getWidth() and getHeight() return an int.
So you have to cast it as double
scaleFactorWidth = (double)2880 / ui.getWidth(); scaleFactorHeight = (double)1800 / ui.getHeight();