src/ui/update.c: no div by zero; src/ui/draw.c: no div by zero
refmt, cleanups, and const'ing 2/?