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
e1188b0c
Commit
e1188b0c
authored
Aug 15, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix some misspellings of "surface".
parent
5f2fcfdd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
78 deletions
+92
-78
device.c
dlls/wined3d/device.c
+53
-46
surface.c
dlls/wined3d/surface.c
+32
-26
surface_base.c
dlls/wined3d/surface_base.c
+0
-0
swapchain_base.c
dlls/wined3d/swapchain_base.c
+4
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-3
No files found.
dlls/wined3d/device.c
View file @
e1188b0c
This diff is collapsed.
Click to expand it.
dlls/wined3d/surface.c
View file @
e1188b0c
...
...
@@ -3764,7 +3764,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *dst_surface,
}
static
HRESULT
IWineD3DSurfaceImpl_BltZ
(
IWineD3DSurfaceImpl
*
This
,
const
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
const
RECT
*
SrcR
ect
,
DWORD
Flags
,
const
WINEDDBLTFX
*
DDBltFx
)
IWineD3DSurface
*
src_surface
,
const
RECT
*
src_r
ect
,
DWORD
Flags
,
const
WINEDDBLTFX
*
DDBltFx
)
{
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
device
;
float
depth
;
...
...
@@ -3798,16 +3798,20 @@ static HRESULT IWineD3DSurfaceImpl_BltZ(IWineD3DSurfaceImpl *This, const RECT *D
return
WINED3DERR_INVALIDCALL
;
}
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_Blt
(
IWineD3DSurface
*
iface
,
const
RECT
*
DestRect
,
IWineD3DSurface
*
SrcSurface
,
const
RECT
*
SrcRect
,
DWORD
Flags
,
const
WINEDDBLTFX
*
DDBltFx
,
WINED3DTEXTUREFILTERTYPE
Filter
)
{
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_Blt
(
IWineD3DSurface
*
iface
,
const
RECT
*
DestRect
,
IWineD3DSurface
*
src_surface
,
const
RECT
*
SrcRect
,
DWORD
Flags
,
const
WINEDDBLTFX
*
DDBltFx
,
WINED3DTEXTUREFILTERTYPE
Filter
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
Src
=
(
IWineD3DSurfaceImpl
*
)
SrcS
urface
;
IWineD3DSurfaceImpl
*
src
=
(
IWineD3DSurfaceImpl
*
)
src_s
urface
;
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
device
;
TRACE
(
"(%p)->(%p,%p,%p,%x,%p)
\n
"
,
This
,
DestRect
,
SrcSurface
,
SrcRect
,
Flags
,
DDBltFx
);
TRACE
(
"(%p): Usage is %s
\n
"
,
This
,
debug_d3dusage
(
This
->
resource
.
usage
));
TRACE
(
"iface %p, dst_rect %s, src_surface %p, src_rect %s, flags %#x, fx %p, filter %s.
\n
"
,
iface
,
wine_dbgstr_rect
(
DestRect
),
src_surface
,
wine_dbgstr_rect
(
SrcRect
),
Flags
,
DDBltFx
,
debug_d3dtexturefiltertype
(
Filter
));
TRACE
(
"Usage is %s.
\n
"
,
debug_d3dusage
(
This
->
resource
.
usage
));
if
(
(
This
->
Flags
&
SFLAG_LOCKED
)
||
((
Src
!=
NULL
)
&&
(
S
rc
->
Flags
&
SFLAG_LOCKED
)))
if
(
(
This
->
Flags
&
SFLAG_LOCKED
)
||
(
src
&&
(
s
rc
->
Flags
&
SFLAG_LOCKED
)))
{
WARN
(
" Surface is busy, returning DDERR_SURFACEBUSY
\n
"
);
return
WINEDDERR_SURFACEBUSY
;
...
...
@@ -3816,13 +3820,15 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_Blt(IWineD3DSurface *iface, const RECT
/* Accessing the depth stencil is supposed to fail between a BeginScene and EndScene pair,
* except depth blits, which seem to work
*/
if
(
This
==
device
->
depth_stencil
||
(
Src
&&
S
rc
==
device
->
depth_stencil
))
if
(
This
==
device
->
depth_stencil
||
(
src
&&
s
rc
==
device
->
depth_stencil
))
{
if
(
device
->
inScene
&&
!
(
Flags
&
WINEDDBLT_DEPTHFILL
))
{
TRACE
(
"Attempt to access the depth stencil surface in a BeginScene / EndScene pair, returning WINED3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
else
if
(
IWineD3DSurfaceImpl_BltZ
(
This
,
DestRect
,
SrcSurface
,
SrcRect
,
Flags
,
DDBltFx
)
==
WINED3D_OK
)
{
}
else
if
(
SUCCEEDED
(
IWineD3DSurfaceImpl_BltZ
(
This
,
DestRect
,
src_surface
,
SrcRect
,
Flags
,
DDBltFx
)))
{
TRACE
(
"Z Blit override handled the blit
\n
"
);
return
WINED3D_OK
;
}
...
...
@@ -3830,48 +3836,49 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_Blt(IWineD3DSurface *iface, const RECT
/* Special cases for RenderTargets */
if
((
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
||
(
Src
&&
(
S
rc
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)))
||
(
src
&&
(
s
rc
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)))
{
if
(
SUCCEEDED
(
IWineD3DSurfaceImpl_BltOverride
(
This
,
DestRect
,
S
rc
,
SrcRect
,
Flags
,
DDBltFx
,
Filter
)))
if
(
SUCCEEDED
(
IWineD3DSurfaceImpl_BltOverride
(
This
,
DestRect
,
s
rc
,
SrcRect
,
Flags
,
DDBltFx
,
Filter
)))
return
WINED3D_OK
;
}
/* For the rest call the X11 surface implementation.
* For RenderTargets this should be implemented OpenGL accelerated in BltOverride,
* other Blts are rather rare
*/
return
IWineD3DBaseSurfaceImpl_Blt
(
iface
,
DestRect
,
SrcSurface
,
SrcRect
,
Flags
,
DDBltFx
,
Filter
);
* other Blts are rather rare. */
return
IWineD3DBaseSurfaceImpl_Blt
(
iface
,
DestRect
,
src_surface
,
SrcRect
,
Flags
,
DDBltFx
,
Filter
);
}
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_BltFast
(
IWineD3DSurface
*
iface
,
DWORD
dstx
,
DWORD
dsty
,
IWineD3DSurface
*
Sour
ce
,
const
RECT
*
rsrc
,
DWORD
trans
)
IWineD3DSurface
*
src_surfa
ce
,
const
RECT
*
rsrc
,
DWORD
trans
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
src
Impl
=
(
IWineD3DSurfaceImpl
*
)
Sour
ce
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
IWineD3DSurfaceImpl
*
src
=
(
IWineD3DSurfaceImpl
*
)
src_surfa
ce
;
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
device
;
TRACE
(
"(%p)->(%d, %d, %p, %p, %08x
\n
"
,
iface
,
dstx
,
dsty
,
Source
,
rsrc
,
trans
);
TRACE
(
"iface %p, dst_x %u, dst_y %u, src_surface %p, src_rect %s, flags %#x.
\n
"
,
iface
,
dstx
,
dsty
,
src_surface
,
wine_dbgstr_rect
(
rsrc
),
trans
);
if
(
(
This
->
Flags
&
SFLAG_LOCKED
)
||
(
srcImpl
->
Flags
&
SFLAG_LOCKED
))
if
(
(
This
->
Flags
&
SFLAG_LOCKED
)
||
(
src
->
Flags
&
SFLAG_LOCKED
))
{
WARN
(
" Surface is busy, returning DDERR_SURFACEBUSY
\n
"
);
return
WINEDDERR_SURFACEBUSY
;
}
if
(
device
->
inScene
&&
(
This
==
device
->
depth_stencil
||
src
Impl
==
device
->
depth_stencil
))
if
(
device
->
inScene
&&
(
This
==
device
->
depth_stencil
||
src
==
device
->
depth_stencil
))
{
TRACE
(
"Attempt to access the depth stencil surface in a BeginScene / EndScene pair, returning WINED3DERR_INVALIDCALL
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
/* Special cases for RenderTargets */
if
(
(
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
||
(
srcImpl
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
)
{
if
((
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
||
(
src
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
))
{
RECT
SrcRect
,
DstRect
;
DWORD
Flags
=
0
;
surface_get_rect
(
src
Impl
,
rsrc
,
&
SrcRect
);
surface_get_rect
(
src
,
rsrc
,
&
SrcRect
);
DstRect
.
left
=
dstx
;
DstRect
.
top
=
dsty
;
...
...
@@ -3889,12 +3896,11 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD
Flags
|=
WINEDDBLT_DONOTWAIT
;
if
(
SUCCEEDED
(
IWineD3DSurfaceImpl_BltOverride
(
This
,
&
DstRect
,
src
Impl
,
&
SrcRect
,
Flags
,
NULL
,
WINED3DTEXF_POINT
)))
&
DstRect
,
src
,
&
SrcRect
,
Flags
,
NULL
,
WINED3DTEXF_POINT
)))
return
WINED3D_OK
;
}
return
IWineD3DBaseSurfaceImpl_BltFast
(
iface
,
dstx
,
dsty
,
Source
,
rsrc
,
trans
);
return
IWineD3DBaseSurfaceImpl_BltFast
(
iface
,
dstx
,
dsty
,
src_surface
,
rsrc
,
trans
);
}
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_RealizePalette
(
IWineD3DSurface
*
iface
)
...
...
dlls/wined3d/surface_base.c
View file @
e1188b0c
This diff is collapsed.
Click to expand it.
dlls/wined3d/swapchain_base.c
View file @
e1188b0c
...
...
@@ -72,11 +72,12 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetParent(IWineD3DSwapChain *iface, IUn
return
WINED3D_OK
;
}
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_GetFrontBufferData
(
IWineD3DSwapChain
*
iface
,
IWineD3DSurface
*
pDestSurface
)
{
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_GetFrontBufferData
(
IWineD3DSwapChain
*
iface
,
IWineD3DSurface
*
dst_surface
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
POINT
start
;
TRACE
(
"
(%p) : iface(%p) pDestSurface(%p)
\n
"
,
This
,
iface
,
pDestS
urface
);
TRACE
(
"
iface %p, dst_surface %p.
\n
"
,
iface
,
dst_s
urface
);
start
.
x
=
0
;
start
.
y
=
0
;
...
...
@@ -85,7 +86,7 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetFrontBufferData(IWineD3DSwapChain *i
MapWindowPoints
(
This
->
win_handle
,
NULL
,
&
start
,
1
);
}
IWineD3DSurface_BltFast
(
pDestS
urface
,
start
.
x
,
start
.
y
,
(
IWineD3DSurface
*
)
This
->
front_buffer
,
NULL
,
0
);
IWineD3DSurface_BltFast
(
dst_s
urface
,
start
.
x
,
start
.
y
,
(
IWineD3DSurface
*
)
This
->
front_buffer
,
NULL
,
0
);
return
WINED3D_OK
;
}
...
...
dlls/wined3d/wined3d_private.h
View file @
e1188b0c
...
...
@@ -2128,8 +2128,8 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_SetClipper(IWineD3DSurface *iface, IWineD
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_GetClipper
(
IWineD3DSurface
*
iface
,
IWineD3DClipper
**
clipper
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_SetFormat
(
IWineD3DSurface
*
iface
,
WINED3DFORMAT
format
)
DECLSPEC_HIDDEN
;
HRESULT
IWineD3DBaseSurfaceImpl_CreateDIBSection
(
IWineD3DSurface
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_Blt
(
IWineD3DSurface
*
iface
,
const
RECT
*
DestRect
,
IWineD3DSurface
*
SrcS
urface
,
const
RECT
*
SrcRect
,
DWORD
Flags
,
const
WINEDDBLTFX
*
DDBltFx
,
WINED3DTEXTUREFILTERTYPE
F
ilter
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_Blt
(
IWineD3DSurface
*
iface
,
const
RECT
*
dst_rect
,
IWineD3DSurface
*
src_s
urface
,
const
RECT
*
src_rect
,
DWORD
flags
,
const
WINEDDBLTFX
*
fx
,
WINED3DTEXTUREFILTERTYPE
f
ilter
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_BltFast
(
IWineD3DSurface
*
iface
,
DWORD
dstx
,
DWORD
dsty
,
IWineD3DSurface
*
Source
,
const
RECT
*
rsrc
,
DWORD
trans
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSurfaceImpl_LockRect
(
IWineD3DSurface
*
iface
,
WINED3DLOCKED_RECT
*
pLockedRect
,
...
...
@@ -2552,7 +2552,7 @@ ULONG WINAPI IWineD3DBaseSwapChainImpl_AddRef(IWineD3DSwapChain *iface) DECLSPEC
ULONG
WINAPI
IWineD3DBaseSwapChainImpl_Release
(
IWineD3DSwapChain
*
iface
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_GetParent
(
IWineD3DSwapChain
*
iface
,
IUnknown
**
ppParent
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_GetFrontBufferData
(
IWineD3DSwapChain
*
iface
,
IWineD3DSurface
*
pDestS
urface
)
DECLSPEC_HIDDEN
;
IWineD3DSurface
*
dst_s
urface
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_GetBackBuffer
(
IWineD3DSwapChain
*
iface
,
UINT
iBackBuffer
,
WINED3DBACKBUFFER_TYPE
Type
,
IWineD3DSurface
**
ppBackBuffer
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IWineD3DBaseSwapChainImpl_GetRasterStatus
(
IWineD3DSwapChain
*
iface
,
...
...
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