Use the new Geometry API

https://github.com/kyoshino/bzdeck/issues/71