Quote Originally Posted by bitChanger
I beleive that line 10 does not have to be divided by ratioW though.
Changing line 10 to the following seems right to me ??
It depends. In above code ratioW and ratioH can be integers. You can use doubles and then one of there variables can be 1.0 and thus omitted.