remove unused private variable _dpi
(found by clang on Mac)
add extra parens in conditional to make clang happy

(found by clang on Mac)