-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2013-05-21 16:04, schrieb Henri Verbeet:
Well, wined3d_device_restore_fullscreen_window() isn't really supposed to generate messages at all, the resize on mode changes happens in device_parent_mode_changed().
Things make a lot more sense considering device_parent_mode_changed and its relation to the focus window message hook.
The attached patch passes all the tests without todo_wine. However, I'm not sure if there are any unintended side effects when I change the order of the swapchain re-creation and focus window release/acquire. I'll probably put this into a different patch for bisecting reasons.
/*****************************************************************************
+ * IDirectDraw7::RestoreDisplayMode
- Restores the display mode to what it was at creation
time. Basically. + * + * Returns + * DD_OK on success + * DDERR_NOEXCLUSIVE mode if the device isn't in fullscreen mode +
*****************************************************************************/
I don't think that really adds anything. It's merely moved from its original position. I'd like to keep it for consistency as pretty much all ddraw methods have a small documentation comment.