Added/used invScaledFloor/Ceil.
Fix HiDPI in Java backend.