[PATCH] wined3d: Use GetDeviceCaps() instead of wined3d_swapchain_get_display_mode().

Akihiro Sagawa sagawa.aki at gmail.com
Fri Jun 22 09:17:17 CDT 2012


wined3d_swapchain_get_display_mode() sometimes takes over 500 ms due to
EDID polling. This prevents an application from getting swapchain status
frequently.
On the other hand, GetDeviceCaps() just returns current settings without
a device query. So it is suitable for retrieving current display height
and its refresh rate.
See http://bugs.winehq.org/show_bug.cgi?id=30538 for details.
---
 dlls/wined3d/swapchain.c |   23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Use-GetDeviceCaps-instead-of-wined3d_swapcha.patch
Type: text/x-patch
Size: 1991 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120622/cf25b06e/attachment.bin>


More information about the wine-patches mailing list