It seems better to round, rather than truncate, in ToPhys(), for the same reasons as in wxBitmap::CreateScaled() (see parent commit), and then ceil() mustn't be used in FromPhys() neither, as this would break round-tripping via both functions. So, finally, keep the behaviour simple and, hopefully, the least surprising, by just rounding the result in both functions.