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
7b80c7d8
Commit
7b80c7d8
authored
Apr 28, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make "clear_rect" a RECT in IWineD3DDeviceImpl_ClearSurface().
parent
772fe683
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
device.c
dlls/wined3d/device.c
+7
-7
No files found.
dlls/wined3d/device.c
View file @
7b80c7d8
...
...
@@ -4354,7 +4354,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Present(IWineD3DDevice *iface,
return
WINED3D_OK
;
}
static
BOOL
is_full_clear
(
IWineD3DSurfaceImpl
*
target
,
const
RECT
*
draw_rect
,
const
WINED3D
RECT
*
clear_rect
)
static
BOOL
is_full_clear
(
IWineD3DSurfaceImpl
*
target
,
const
RECT
*
draw_rect
,
const
RECT
*
clear_rect
)
{
/* partial draw rect */
if
(
draw_rect
->
left
||
draw_rect
->
top
...
...
@@ -4363,9 +4363,9 @@ static BOOL is_full_clear(IWineD3DSurfaceImpl *target, const RECT *draw_rect, co
return
FALSE
;
/* partial clear rect */
if
(
clear_rect
&&
(
clear_rect
->
x1
>
0
||
clear_rect
->
y1
>
0
||
clear_rect
->
x2
<
target
->
currentDesc
.
Width
||
clear_rect
->
y2
<
target
->
currentDesc
.
Height
))
if
(
clear_rect
&&
(
clear_rect
->
left
>
0
||
clear_rect
->
top
>
0
||
clear_rect
->
right
<
target
->
currentDesc
.
Width
||
clear_rect
->
bottom
<
target
->
currentDesc
.
Height
))
return
FALSE
;
return
TRUE
;
...
...
@@ -4375,7 +4375,7 @@ static BOOL is_full_clear(IWineD3DSurfaceImpl *target, const RECT *draw_rect, co
HRESULT
IWineD3DDeviceImpl_ClearSurface
(
IWineD3DDeviceImpl
*
This
,
IWineD3DSurfaceImpl
*
target
,
DWORD
Count
,
const
WINED3DRECT
*
pRects
,
DWORD
Flags
,
WINED3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
{
const
WINED3DRECT
*
clear_rect
=
(
Count
>
0
&&
pRects
)
?
pRects
:
NULL
;
const
RECT
*
clear_rect
=
(
Count
>
0
&&
pRects
)
?
(
const
RECT
*
)
pRects
:
NULL
;
IWineD3DSurfaceImpl
*
depth_stencil
=
This
->
depth_stencil
;
GLbitfield
glMask
=
0
;
unsigned
int
i
;
...
...
@@ -4506,10 +4506,10 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfac
for
(
i
=
0
;
i
<
Count
;
++
i
)
{
/* Note gl uses lower left, width/height */
IntersectRect
(
&
current_rect
,
&
draw_rect
,
(
const
RECT
*
)
&
clear_rect
[
i
]);
IntersectRect
(
&
current_rect
,
&
draw_rect
,
&
clear_rect
[
i
]);
TRACE
(
"clear_rect[%u] %s, current_rect %s.
\n
"
,
i
,
wine_dbgstr_rect
(
(
const
RECT
*
)
&
clear_rect
[
i
]),
wine_dbgstr_rect
(
&
clear_rect
[
i
]),
wine_dbgstr_rect
(
&
current_rect
));
/* Tests show that rectangles where x1 > x2 or y1 > y2 are ignored silently.
...
...
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