Henri Verbeet : wined3d: Use the context' s current render target the get the swapchain drawable size.
Alexandre Julliard
julliard at winehq.org
Mon Aug 3 11:14:38 CDT 2009
Module: wine
Branch: master
Commit: 43bfb240add6c722993801bbbb82b4244b3535a4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=43bfb240add6c722993801bbbb82b4244b3535a4
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Aug 3 08:06:49 2009 +0200
wined3d: Use the context's current render target the get the swapchain drawable size.
"surface" might point to the frontbuffer while we're rendering to the
backbuffer, etc.
---
dlls/wined3d/swapchain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 0994c6d..c0e0457 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -404,7 +404,7 @@ WineD3DContext *IWineD3DSwapChainImpl_CreateContextForThread(IWineD3DSwapChain *
void get_drawable_size_swapchain(struct WineD3DContext *context, UINT *width, UINT *height)
{
- IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)context->surface;
+ IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)context->current_rt;
/* The drawable size of an onscreen drawable is the surface size.
* (Actually: The window size, but the surface is created in window size) */
*width = surface->currentDesc.Width;
More information about the wine-cvs
mailing list