- float xscroll = screendx * ticks;
- float yscroll = screendy * ticks;
-
- // Originally this code was much simpler, but it would crash sometimes
- // because the floating point numbers wouldn't always round the same
- // direction, and we'd ocanially try to draw off the screen.