1024/800 is integer division (which turns out to be 1, then when assigned to a float var is 1.0)
what you want to do is this:
...which is float division. Have fun. =)
what you want to do is this:
scle#=1024.0/800.0
...which is float division. Have fun. =)