DPI scaling was applied twice. Added an API comment to make this more clear for the caller of the function.