patch to revert to previous scaling behavior

I have an embedded js app that needs pixel-precise coordinates and I
haven't worked out how to get them without disabling scaling