Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bbe490ab
Commit
bbe490ab
authored
Apr 06, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add WINED3DLOCKED_RECT to wined3d_types.h.
parent
63fd9a7a
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
21 additions
and
17 deletions
+21
-17
cubetexture.c
dlls/d3d8/cubetexture.c
+1
-1
surface.c
dlls/d3d8/surface.c
+1
-1
texture.c
dlls/d3d8/texture.c
+1
-1
cubetexture.c
dlls/d3d9/cubetexture.c
+1
-1
surface.c
dlls/d3d9/surface.c
+1
-1
texture.c
dlls/d3d9/texture.c
+1
-1
cubetexture.c
dlls/wined3d/cubetexture.c
+1
-1
device.c
dlls/wined3d/device.c
+4
-4
drawprim.c
dlls/wined3d/drawprim.c
+1
-1
surface.c
dlls/wined3d/surface.c
+1
-1
texture.c
dlls/wined3d/texture.c
+1
-1
wined3d_interface.h
include/wine/wined3d_interface.h
+3
-3
wined3d_types.h
include/wine/wined3d_types.h
+4
-0
No files found.
dlls/d3d8/cubetexture.c
View file @
bbe490ab
...
...
@@ -170,7 +170,7 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_GetCubeMapSurface(LPDIRECT3DCUBETEXTURE
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_LockRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_LockRect
(
This
->
wineD3DCubeTexture
,
(
WINED3DCUBEMAP_FACES
)
FaceType
,
Level
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DCubeTexture_LockRect
(
This
->
wineD3DCubeTexture
,
(
WINED3DCUBEMAP_FACES
)
FaceType
,
Level
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_UnlockRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
{
...
...
dlls/d3d8/surface.c
View file @
bbe490ab
...
...
@@ -177,7 +177,7 @@ HRESULT WINAPI IDirect3DSurface8Impl_LockRect(LPDIRECT3DSURFACE8 iface, D3DLOCKE
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
TRACE
(
"(%p) calling IWineD3DSurface_LockRect %p %p %p %ld
\n
"
,
This
,
This
->
wineD3DSurface
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DSurface_LockRect
(
This
->
wineD3DSurface
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DSurface_LockRect
(
This
->
wineD3DSurface
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DSurface8Impl_UnlockRect
(
LPDIRECT3DSURFACE8
iface
)
{
...
...
dlls/d3d8/texture.c
View file @
bbe490ab
...
...
@@ -169,7 +169,7 @@ HRESULT WINAPI IDirect3DTexture8Impl_GetSurfaceLevel(LPDIRECT3DTEXTURE8 iface, U
HRESULT
WINAPI
IDirect3DTexture8Impl_LockRect
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_LockRect
(
This
->
wineD3DTexture
,
Level
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DTexture_LockRect
(
This
->
wineD3DTexture
,
Level
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DTexture8Impl_UnlockRect
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
)
{
...
...
dlls/d3d9/cubetexture.c
View file @
bbe490ab
...
...
@@ -191,7 +191,7 @@ HRESULT WINAPI IDirect3DCubeTexture9Impl_GetCubeMapSurface(LPDIRECT3DCUBETEXTURE
HRESULT
WINAPI
IDirect3DCubeTexture9Impl_LockRect
(
LPDIRECT3DCUBETEXTURE9
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IDirect3DCubeTexture9Impl
*
This
=
(
IDirect3DCubeTexture9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_LockRect
(
This
->
wineD3DCubeTexture
,
(
WINED3DCUBEMAP_FACES
)
FaceType
,
Level
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DCubeTexture_LockRect
(
This
->
wineD3DCubeTexture
,
(
WINED3DCUBEMAP_FACES
)
FaceType
,
Level
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DCubeTexture9Impl_UnlockRect
(
LPDIRECT3DCUBETEXTURE9
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
{
...
...
dlls/d3d9/surface.c
View file @
bbe490ab
...
...
@@ -197,7 +197,7 @@ HRESULT WINAPI IDirect3DSurface9Impl_LockRect(LPDIRECT3DSURFACE9 iface, D3DLOCKE
IDirect3DSurface9Impl
*
This
=
(
IDirect3DSurface9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
TRACE
(
"(%p) calling IWineD3DSurface_LockRect %p %p %p %ld
\n
"
,
This
,
This
->
wineD3DSurface
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DSurface_LockRect
(
This
->
wineD3DSurface
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DSurface_LockRect
(
This
->
wineD3DSurface
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DSurface9Impl_UnlockRect
(
LPDIRECT3DSURFACE9
iface
)
{
...
...
dlls/d3d9/texture.c
View file @
bbe490ab
...
...
@@ -189,7 +189,7 @@ HRESULT WINAPI IDirect3DTexture9Impl_GetSurfaceLevel(LPDIRECT3DTEXTURE9 iface, U
HRESULT
WINAPI
IDirect3DTexture9Impl_LockRect
(
LPDIRECT3DTEXTURE9
iface
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IDirect3DTexture9Impl
*
This
=
(
IDirect3DTexture9Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_LockRect
(
This
->
wineD3DTexture
,
Level
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DTexture_LockRect
(
This
->
wineD3DTexture
,
Level
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DTexture9Impl_UnlockRect
(
LPDIRECT3DTEXTURE9
iface
,
UINT
Level
)
{
...
...
dlls/wined3d/cubetexture.c
View file @
bbe490ab
...
...
@@ -292,7 +292,7 @@ HRESULT WINAPI IWineD3DCubeTextureImpl_GetCubeMapSurface(IWineD3DCubeTexture *if
return
hr
;
}
HRESULT
WINAPI
IWineD3DCubeTextureImpl_LockRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
HRESULT
WINAPI
IWineD3DCubeTextureImpl_LockRect
(
IWineD3DCubeTexture
*
iface
,
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
WINE
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
HRESULT
hr
=
D3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
...
...
dlls/wined3d/device.c
View file @
bbe490ab
...
...
@@ -5740,8 +5740,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_CopyRects(IWineD3DDevice *iface,
if
(
cRects
==
0
&&
pSourceRectsArray
==
NULL
&&
pDestPointsArray
==
NULL
)
{
if
(
srcWidth
==
destWidth
&&
srcHeight
==
destHeight
)
{
D3DLOCKED_RECT
lrSrc
;
D3DLOCKED_RECT
lrDst
;
WINE
D3DLOCKED_RECT
lrSrc
;
WINE
D3DLOCKED_RECT
lrDst
;
IWineD3DSurface_LockRect
(
pSourceSurface
,
&
lrSrc
,
NULL
,
WINED3DLOCK_READONLY
);
IWineD3DSurface_LockRect
(
pDestinationSurface
,
&
lrDst
,
NULL
,
0L
);
TRACE
(
"Locked src and dst, Direct copy as surfaces are equal, w=%d, h=%d
\n
"
,
srcWidth
,
srcHeight
);
...
...
@@ -5771,8 +5771,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_CopyRects(IWineD3DDevice *iface,
CONST
POINT
*
p
=
&
pDestPointsArray
[
i
];
int
copyperline
;
int
j
;
D3DLOCKED_RECT
lrSrc
;
D3DLOCKED_RECT
lrDst
;
WINE
D3DLOCKED_RECT
lrSrc
;
WINE
D3DLOCKED_RECT
lrDst
;
RECT
dest_rect
;
TRACE
(
"Copying rect %d (%ld,%ld),(%ld,%ld) -> (%ld,%ld)
\n
"
,
i
,
r
->
left
,
r
->
top
,
r
->
right
,
r
->
bottom
,
p
->
x
,
p
->
y
);
...
...
dlls/wined3d/drawprim.c
View file @
bbe490ab
...
...
@@ -2195,7 +2195,7 @@ void drawPrimitive(IWineD3DDevice *iface,
/* NOTE: set primCounter to the value reported by drawprim
before you want to to write frame makeup to /tmp */
if
(
primCounter
>=
0
)
{
D3DLOCKED_RECT
r
;
WINE
D3DLOCKED_RECT
r
;
char
buffer
[
80
];
IWineD3DSurface_LockRect
(
This
->
renderTarget
,
&
r
,
NULL
,
WINED3DLOCK_READONLY
);
sprintf
(
buffer
,
"/tmp/backbuffer_%ld.tga"
,
primCounter
);
...
...
dlls/wined3d/surface.c
View file @
bbe490ab
...
...
@@ -264,7 +264,7 @@ const void *WINAPI IWineD3DSurfaceImpl_GetData(IWineD3DSurface *iface) {
return
(
CONST
void
*
)(
This
->
resource
.
allocatedMemory
);
}
HRESULT
WINAPI
IWineD3DSurfaceImpl_LockRect
(
IWineD3DSurface
*
iface
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
HRESULT
WINAPI
IWineD3DSurfaceImpl_LockRect
(
IWineD3DSurface
*
iface
,
WINE
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
myDevice
=
This
->
resource
.
wineD3DDevice
;
IWineD3DSwapChainImpl
*
swapchain
=
NULL
;
...
...
dlls/wined3d/texture.c
View file @
bbe490ab
...
...
@@ -273,7 +273,7 @@ HRESULT WINAPI IWineD3DTextureImpl_GetSurfaceLevel(IWineD3DTexture *iface, UINT
return
hr
;
}
HRESULT
WINAPI
IWineD3DTextureImpl_LockRect
(
IWineD3DTexture
*
iface
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
HRESULT
WINAPI
IWineD3DTextureImpl_LockRect
(
IWineD3DTexture
*
iface
,
UINT
Level
,
WINE
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IWineD3DTextureImpl
*
This
=
(
IWineD3DTextureImpl
*
)
iface
;
HRESULT
hr
=
D3DERR_INVALIDCALL
;
...
...
include/wine/wined3d_interface.h
View file @
bbe490ab
...
...
@@ -831,7 +831,7 @@ DECLARE_INTERFACE_(IWineD3DTexture,IWineD3DBaseTexture)
/*** IWineD3DTexture methods ***/
STDMETHOD
(
GetLevelDesc
)(
THIS_
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
GetSurfaceLevel
)(
THIS_
UINT
Level
,
struct
IWineD3DSurface
**
ppSurfaceLevel
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
UINT
Level
,
WINE
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockRect
)(
THIS_
UINT
Level
)
PURE
;
STDMETHOD
(
AddDirtyRect
)(
THIS_
CONST
RECT
*
pDirtyRect
)
PURE
;
};
...
...
@@ -911,7 +911,7 @@ DECLARE_INTERFACE_(IWineD3DCubeTexture,IWineD3DBaseTexture)
/*** IWineD3DCubeTexture methods ***/
STDMETHOD
(
GetLevelDesc
)(
THIS_
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
GetCubeMapSurface
)(
THIS_
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
struct
IWineD3DSurface
**
ppCubeMapSurface
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
WINE
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockRect
)(
THIS_
WINED3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
PURE
;
STDMETHOD
(
AddDirtyRect
)(
THIS_
WINED3DCUBEMAP_FACES
FaceType
,
CONST
RECT
*
pDirtyRect
)
PURE
;
};
...
...
@@ -1060,7 +1060,7 @@ DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
STDMETHOD
(
GetContainerParent
)(
THIS_
IUnknown
**
ppContainerParent
)
PURE
;
STDMETHOD
(
GetContainer
)(
THIS_
REFIID
riid
,
void
**
ppContainer
)
PURE
;
STDMETHOD
(
GetDesc
)(
THIS_
WINED3DSURFACE_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
WINE
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockRect
)(
THIS
)
PURE
;
STDMETHOD
(
GetDC
)(
THIS_
HDC
*
pHdc
)
PURE
;
STDMETHOD
(
ReleaseDC
)(
THIS_
HDC
hdc
)
PURE
;
...
...
include/wine/wined3d_types.h
View file @
bbe490ab
...
...
@@ -690,6 +690,10 @@ typedef struct _WINED3DDEVINFO_VERTEXSTATS {
DWORD
NumExtraClippingTriangles
;
}
WINED3DDEVINFO_VERTEXSTATS
;
typedef
struct
_WINED3DLOCKED_RECT
{
INT
Pitch
;
void
*
pBits
;
}
WINED3DLOCKED_RECT
;
/*Vertex cache optimization hints.*/
typedef
struct
WINED3DDEVINFO_VCACHE
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment