946
SCI Development Tools / Re: Picture Editor written in Java
« on: December 16, 2010, 07:49:06 PM »
I have just checked the scummvm source code and their formula for SCI0 is as follows:
1 + ((Y - 42) * 2000) / (((190 - 42) * 2000)/14)
There is a comment in the source code saying not to modify the calculation because should not involve any kind of rounding of doubles.
It looks roughly the same as the calculation I came up with. It's too late in the evening to figure out if they generate the same values or not.
1 + ((Y - 42) * 2000) / (((190 - 42) * 2000)/14)
There is a comment in the source code saying not to modify the calculation because should not involve any kind of rounding of doubles.
It looks roughly the same as the calculation I came up with. It's too late in the evening to figure out if they generate the same values or not.