[PATCH] WineD3D: use the drawable size to set up blitting=0A=

Stefan Doesinger stefan at codeweavers.com
Tue Jul 29 09:58:28 CDT 2008


=0A=
---=0A=
 dlls/wined3d/context.c |   10 +++++++---=0A=
 1 files changed, 7 insertions(+), 3 deletions(-)=0A=
=0A=
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c=0A=
index bb354f6..9646633 100644=0A=
--- a/dlls/wined3d/context.c=0A=
+++ b/dlls/wined3d/context.c=0A=
@@ -1173,10 +1173,14 @@ void ActivateContext(IWineD3DDeviceImpl *This, =
IWineD3DSurface *target, ContextU=0A=
             break;=0A=
 =0A=
         case CTXUSAGE_BLIT:=0A=
-            SetupForBlit(This, context,=0A=
-                         ((IWineD3DSurfaceImpl =
*)target)->currentDesc.Width,=0A=
-                         ((IWineD3DSurfaceImpl =
*)target)->currentDesc.Height);=0A=
+        {=0A=
+            UINT w, h;=0A=
+            LEAVE_GL();=0A=
+            ((IWineD3DSurfaceImpl *) =
target)->get_drawable_size((IWineD3DSurfaceImpl *) target, &w, &h);=0A=
+            ENTER_GL();=0A=
+            SetupForBlit(This, context, w, h);=0A=
             break;=0A=
+        }=0A=
 =0A=
         default:=0A=
             FIXME("Unexpected context usage requested\n");=0A=
-- =0A=
1.5.4.5=0A=
=0A=

------=_NextPart_000_00D4_01C8F2F4.C4167FD0--




More information about the wine-patches mailing list