Support scaling on Mac as well.

Change-Id: I947a68cc042f81c11a6ddb1313860212ab6e7ee1