From 964408d0bfe6d7098441f52d7464ce0ba7821a2a Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 24 Feb 2009 07:43:02 +0100 Subject: [PATCH] dxgi: Initial IDXGISwapChain::Present() implementation. --- dlls/dxgi/swapchain.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/dxgi/swapchain.c b/dlls/dxgi/swapchain.c index af8bb0aa694..8b4fe755fde 100644 --- a/dlls/dxgi/swapchain.c +++ b/dlls/dxgi/swapchain.c @@ -156,9 +156,14 @@ static HRESULT STDMETHODCALLTYPE dxgi_swapchain_GetDevice(IDXGISwapChain *iface, static HRESULT STDMETHODCALLTYPE dxgi_swapchain_Present(IDXGISwapChain *iface, UINT sync_interval, UINT flags) { - FIXME("iface %p, sync_interval %u, flags %#x stub!\n", iface, sync_interval, flags); + struct dxgi_swapchain *This = (struct dxgi_swapchain *)iface; - return E_NOTIMPL; + TRACE("iface %p, sync_interval %u, flags %#x\n", iface, sync_interval, flags); + + if (sync_interval) FIXME("Unimplemented sync interval %u\n", sync_interval); + if (flags) FIXME("Unimplemented flags %#x\n", flags); + + return IWineD3DSwapChain_Present(This->wined3d_swapchain, NULL, NULL, NULL, NULL, 0); } static HRESULT STDMETHODCALLTYPE dxgi_swapchain_GetBuffer(IDXGISwapChain *iface,