quiet msvc warning
editor: fix off-by-one
editor: fixup filling
editor: simplify rect calculations