Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4005eb2a
Commit
4005eb2a
authored
Aug 30, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of WINED3DRECT.
parent
1bf25cfe
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
31 deletions
+19
-31
device.c
dlls/d3d8/device.c
+1
-2
device.c
dlls/d3d9/device.c
+2
-3
device.c
dlls/ddraw/device.c
+1
-2
device.c
dlls/wined3d/device.c
+12
-13
surface.c
dlls/wined3d/surface.c
+1
-1
wined3d.idl
include/wine/wined3d.idl
+2
-10
No files found.
dlls/d3d8/device.c
View file @
4005eb2a
...
...
@@ -1069,9 +1069,8 @@ static HRESULT WINAPI IDirect3DDevice8Impl_Clear(LPDIRECT3DDEVICE8 iface, DWORD
TRACE
(
"iface %p, rect_count %u, rects %p, flags %#x, color 0x%08x, z %.8e, stencil %u.
\n
"
,
iface
,
Count
,
pRects
,
Flags
,
Color
,
Z
,
Stencil
);
/* Note: D3DRECT is compatible with WINED3DRECT */
wined3d_mutex_lock
();
hr
=
IWineD3DDevice_Clear
(
This
->
WineD3DDevice
,
Count
,
(
CONST
WINED3DRECT
*
)
pRects
,
Flags
,
Color
,
Z
,
Stencil
);
hr
=
IWineD3DDevice_Clear
(
This
->
WineD3DDevice
,
Count
,
(
const
RECT
*
)
pRects
,
Flags
,
Color
,
Z
,
Stencil
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/d3d9/device.c
View file @
4005eb2a
...
...
@@ -1044,8 +1044,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_ColorFill(IDirect3DDevice9Ex *iface,
}
/* Colorfill can only be used on rendertarget surfaces, or offscreen plain surfaces in D3DPOOL_DEFAULT */
/* Note: D3DRECT is compatible with WINED3DRECT */
hr
=
IWineD3DDevice_ColorFill
(
This
->
WineD3DDevice
,
surface
->
wineD3DSurface
,
(
const
WINED3DRECT
*
)
pRect
,
&
c
);
hr
=
IWineD3DDevice_ColorFill
(
This
->
WineD3DDevice
,
surface
->
wineD3DSurface
,
pRect
,
&
c
);
wined3d_mutex_unlock
();
...
...
@@ -1214,7 +1213,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_Clear(LPDIRECT3DDEVICE9EX iface, DW
/* Note: D3DRECT is compatible with WINED3DRECT */
wined3d_mutex_lock
();
hr
=
IWineD3DDevice_Clear
(
This
->
WineD3DDevice
,
Count
,
(
CONST
WINED3DRECT
*
)
pRects
,
Flags
,
Color
,
Z
,
Stencil
);
hr
=
IWineD3DDevice_Clear
(
This
->
WineD3DDevice
,
Count
,
(
const
RECT
*
)
pRects
,
Flags
,
Color
,
Z
,
Stencil
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/ddraw/device.c
View file @
4005eb2a
...
...
@@ -5220,9 +5220,8 @@ IDirect3DDeviceImpl_7_Clear(IDirect3DDevice7 *iface,
TRACE
(
"iface %p, count %u, rects %p, flags %#x, color 0x%08x, z %.8e, stencil %#x.
\n
"
,
iface
,
Count
,
Rects
,
Flags
,
Color
,
Z
,
Stencil
);
/* Note; D3DRECT is compatible with WINED3DRECT */
EnterCriticalSection
(
&
ddraw_cs
);
hr
=
IWineD3DDevice_Clear
(
This
->
wineD3DDevice
,
Count
,
(
WINED3DRECT
*
)
Rects
,
Flags
,
Color
,
Z
,
Stencil
);
hr
=
IWineD3DDevice_Clear
(
This
->
wineD3DDevice
,
Count
,
(
RECT
*
)
Rects
,
Flags
,
Color
,
Z
,
Stencil
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
hr
;
}
...
...
dlls/wined3d/device.c
View file @
4005eb2a
...
...
@@ -4576,28 +4576,27 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Present(IWineD3DDevice *iface,
return
WINED3D_OK
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Clear
(
IWineD3DDevice
*
iface
,
DWORD
C
ount
,
const
WINED3DRECT
*
pRects
,
DWORD
Flags
,
WINED3DCOLOR
color
,
float
Z
,
DWORD
S
tencil
)
static
HRESULT
WINAPI
IWineD3DDeviceImpl_Clear
(
IWineD3DDevice
*
iface
,
DWORD
rect_c
ount
,
const
RECT
*
rects
,
DWORD
flags
,
WINED3DCOLOR
color
,
float
depth
,
DWORD
s
tencil
)
{
const
WINED3DCOLORVALUE
c
=
{
D3DCOLOR_R
(
color
),
D3DCOLOR_G
(
color
),
D3DCOLOR_B
(
color
),
D3DCOLOR_A
(
color
)};
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
device
=
(
IWineD3DDeviceImpl
*
)
iface
;
RECT
draw_rect
;
TRACE
(
"
(%p) Count (%d), pRects (%p), Flags (%x), color (0x%08x), Z (%f), Stencil (%d)
\n
"
,
This
,
Count
,
pRects
,
Flags
,
color
,
Z
,
S
tencil
);
TRACE
(
"
iface %p, rect_count %u, rects %p, flags %#x, color 0x%08x, depth %.8e, stencil %u.
\n
"
,
iface
,
rect_count
,
rects
,
flags
,
color
,
depth
,
s
tencil
);
if
(
Flags
&
(
WINED3DCLEAR_ZBUFFER
|
WINED3DCLEAR_STENCIL
)
&&
!
This
->
depth_stencil
)
if
(
flags
&
(
WINED3DCLEAR_ZBUFFER
|
WINED3DCLEAR_STENCIL
)
&&
!
device
->
depth_stencil
)
{
WARN
(
"Clearing depth and/or stencil without a depth stencil buffer attached, returning WINED3DERR_INVALIDCALL
\n
"
);
/* TODO: What about depth stencil buffers without stencil bits? */
return
WINED3DERR_INVALIDCALL
;
}
device_get_draw_rect
(
This
,
&
draw_rect
);
device_get_draw_rect
(
device
,
&
draw_rect
);
return
device_clear_render_targets
(
This
,
This
->
adapter
->
gl_info
.
limits
.
buffers
,
This
->
render_targets
,
Count
,
(
const
RECT
*
)
pRects
,
&
draw_rect
,
Flags
,
&
c
,
Z
,
Stencil
);
return
device_clear_render_targets
(
device
,
device
->
adapter
->
gl_info
.
limits
.
buffers
,
device
->
render_targets
,
rect_count
,
rects
,
&
draw_rect
,
flags
,
&
c
,
depth
,
stencil
);
}
/*****
...
...
@@ -5497,12 +5496,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_DeletePatch(IWineD3DDevice *iface, UINT
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ColorFill
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
surface
,
const
WINED3DRECT
*
pR
ect
,
const
WINED3DCOLORVALUE
*
color
)
IWineD3DSurface
*
surface
,
const
RECT
*
r
ect
,
const
WINED3DCOLORVALUE
*
color
)
{
IWineD3DSurfaceImpl
*
s
=
(
IWineD3DSurfaceImpl
*
)
surface
;
TRACE
(
"iface %p, surface %p, rect %s, color {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
iface
,
surface
,
wine_dbgstr_rect
(
(
const
RECT
*
)
pR
ect
),
iface
,
surface
,
wine_dbgstr_rect
(
r
ect
),
color
->
r
,
color
->
g
,
color
->
b
,
color
->
a
);
if
(
s
->
resource
.
pool
!=
WINED3DPOOL_DEFAULT
&&
s
->
resource
.
pool
!=
WINED3DPOOL_SYSTEMMEM
)
...
...
@@ -5511,7 +5510,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface,
return
WINED3DERR_INVALIDCALL
;
}
return
surface_color_fill
(
s
,
(
const
RECT
*
)
pR
ect
,
color
);
return
surface_color_fill
(
s
,
r
ect
,
color
);
}
static
void
WINAPI
IWineD3DDeviceImpl_ClearRendertargetView
(
IWineD3DDevice
*
iface
,
...
...
dlls/wined3d/surface.c
View file @
4005eb2a
...
...
@@ -3790,7 +3790,7 @@ static HRESULT IWineD3DSurfaceImpl_BltZ(IWineD3DSurfaceImpl *This, const RECT *D
ERR
(
"Unexpected format for depth fill: %s.
\n
"
,
debug_d3dformat
(
This
->
resource
.
format_desc
->
id
));
}
return
IWineD3DDevice_Clear
((
IWineD3DDevice
*
)
device
,
DestRect
?
1
:
0
,
(
const
WINED3DRECT
*
)
DestRect
,
return
IWineD3DDevice_Clear
((
IWineD3DDevice
*
)
device
,
DestRect
?
1
:
0
,
DestRect
,
WINED3DCLEAR_ZBUFFER
,
0x00000000
,
depth
,
0x00000000
);
}
...
...
include/wine/wined3d.idl
View file @
4005eb2a
...
...
@@ -1573,14 +1573,6 @@ typedef struct _WINED3DMATRIX
}
DUMMYUNIONNAME
;
}
WINED3DMATRIX
;
typedef
struct
_WINED3DRECT
{
LONG
x1
;
LONG
y1
;
LONG
x2
;
LONG
y2
;
}
WINED3DRECT
;
typedef
struct
_WINED3DLIGHT
{
WINED3DLIGHTTYPE
Type
;
...
...
@@ -3305,7 +3297,7 @@ interface IWineD3DDevice : IWineD3DBase
)
;
HRESULT
Clear
(
[
in
]
DWORD
rect_count
,
[
in
]
const
WINED3D
RECT
*
rects
,
[
in
]
const
RECT
*
rects
,
[
in
]
DWORD
flags
,
[
in
]
WINED3DCOLOR
color
,
[
in
]
float
z
,
...
...
@@ -3367,7 +3359,7 @@ interface IWineD3DDevice : IWineD3DBase
)
;
HRESULT
ColorFill
(
[
in
]
IWineD3DSurface
*
surface
,
[
in
]
const
WINED3D
RECT
*
rect
,
[
in
]
const
RECT
*
rect
,
[
in
]
const
WINED3DCOLORVALUE
*
color
)
;
HRESULT
UpdateTexture
(
...
...
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