more dpi-related fixes