Improve hidpi support