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
92e616f3
Commit
92e616f3
authored
Aug 03, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Remove rectangle validation from ddraw_surface7_Blt().
This is already done by wined3d_surface_blt().
parent
7e3ecd68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
surface.c
dlls/ddraw/surface.c
+0
-23
No files found.
dlls/ddraw/surface.c
View file @
92e616f3
...
@@ -1211,30 +1211,7 @@ static HRESULT WINAPI ddraw_surface7_Blt(IDirectDrawSurface7 *iface, RECT *DestR
...
@@ -1211,30 +1211,7 @@ static HRESULT WINAPI ddraw_surface7_Blt(IDirectDrawSurface7 *iface, RECT *DestR
return
DDERR_INVALIDPARAMS
;
return
DDERR_INVALIDPARAMS
;
}
}
/* Sizes can change, therefore hold the lock when testing the rectangles */
EnterCriticalSection
(
&
ddraw_cs
);
EnterCriticalSection
(
&
ddraw_cs
);
if
(
DestRect
)
{
if
(
DestRect
->
top
>=
DestRect
->
bottom
||
DestRect
->
left
>=
DestRect
->
right
||
DestRect
->
right
>
This
->
surface_desc
.
dwWidth
||
DestRect
->
bottom
>
This
->
surface_desc
.
dwHeight
)
{
WARN
(
"Destination rectangle is invalid, returning DDERR_INVALIDRECT
\n
"
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
DDERR_INVALIDRECT
;
}
}
if
(
Src
&&
SrcRect
)
{
if
(
SrcRect
->
top
>=
SrcRect
->
bottom
||
SrcRect
->
left
>=
SrcRect
->
right
||
SrcRect
->
right
>
Src
->
surface_desc
.
dwWidth
||
SrcRect
->
bottom
>
Src
->
surface_desc
.
dwHeight
)
{
WARN
(
"Source rectangle is invalid, returning DDERR_INVALIDRECT
\n
"
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
DDERR_INVALIDRECT
;
}
}
if
(
Flags
&
DDBLT_KEYSRC
&&
(
!
Src
||
!
(
Src
->
surface_desc
.
dwFlags
&
DDSD_CKSRCBLT
)))
{
if
(
Flags
&
DDBLT_KEYSRC
&&
(
!
Src
||
!
(
Src
->
surface_desc
.
dwFlags
&
DDSD_CKSRCBLT
)))
{
WARN
(
"DDBLT_KEYDEST blit without color key in surface, returning DDERR_INVALIDPARAMS
\n
"
);
WARN
(
"DDBLT_KEYDEST blit without color key in surface, returning DDERR_INVALIDPARAMS
\n
"
);
...
...
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