Fix rounding issue of hud dpi on some machines