Fix scaling issues at high DPI