DPI compensation