Michael Stefaniuc : ddraw: Remove superfluous cast to self.
Alexandre Julliard
julliard at winehq.org
Fri Jan 29 15:10:22 CST 2021
Module: wine
Branch: master
Commit: 956721e15c0de5a379a7bba69961e9c353694d1a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=956721e15c0de5a379a7bba69961e9c353694d1a
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Thu Jan 28 23:29:39 2021 +0100
ddraw: Remove superfluous cast to self.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ddraw/device.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 3f1fe08c11e..4d24c22650e 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -3179,8 +3179,7 @@ static HRESULT WINAPI d3d_device3_SetTransform(IDirect3DDevice3 *iface,
wined3d_mutex_lock();
multiply_matrix(&projection, &device->legacy_clipspace, (struct wined3d_matrix *)matrix);
- wined3d_stateblock_set_transform(device->state,
- WINED3D_TS_PROJECTION, (struct wined3d_matrix *)&projection);
+ wined3d_stateblock_set_transform(device->state, WINED3D_TS_PROJECTION, &projection);
memcpy(&device->legacy_projection, matrix, sizeof(*matrix));
wined3d_mutex_unlock();
More information about the wine-cvs
mailing list