Tweaks to using 32-bit integer math in renderer

Stuff I previously missed, inspired by
https://github.com/fabiangreffrath/crispy-doom/commit/31f33df5a59641bfa359cf26b034a7a462b269d5.