emergency patch use window size to scale coords