[PATCH 1/2] wined3d: Move the window resize during swapchain activation to a separate function.