This patch fixes bug 17215. Since the patch was seemingly dropped, I made some test improvements and resubmit it.
The tests pass on Windows XP, and of course Wine.
Suggested changelog:
In DirectDraw fullscreen mode, make sure the fullscreen window is resized when the display mode changes
Johan Gill