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
c6f0ddcb
Commit
c6f0ddcb
authored
Mar 30, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove some unneeded source rectangle calculations from BltOverride.
parent
87b5b2f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
surface.c
dlls/wined3d/surface.c
+6
-13
No files found.
dlls/wined3d/surface.c
View file @
c6f0ddcb
...
...
@@ -3817,24 +3817,17 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
/* Check rects - IWineD3DDevice_Present doesn't handle them */
while
(
1
)
{
RECT
mySrcRect
;
TRACE
(
"Looking if a Present can be done...
\n
"
);
/* Source Rectangle must be full surface */
if
(
SrcRect
)
{
if
(
SrcRect
->
left
!=
0
||
SrcRect
->
top
!=
0
||
SrcRect
->
right
!=
Src
->
currentDesc
.
Width
||
SrcRect
->
bottom
!=
Src
->
currentDesc
.
Height
)
{
TRACE
(
"No, Source rectangle doesn't match
\n
"
);
break
;
}
if
(
src_rect
.
left
!=
0
||
src_rect
.
top
!=
0
||
src_rect
.
right
!=
Src
->
currentDesc
.
Width
||
src_rect
.
bottom
!=
Src
->
currentDesc
.
Height
)
{
TRACE
(
"No, Source rectangle doesn't match
\n
"
);
break
;
}
mySrcRect
.
left
=
0
;
mySrcRect
.
top
=
0
;
mySrcRect
.
right
=
Src
->
currentDesc
.
Width
;
mySrcRect
.
bottom
=
Src
->
currentDesc
.
Height
;
/* No stretching may occur */
if
(
mySrcR
ect
.
right
!=
dst_rect
.
right
-
dst_rect
.
left
||
mySrcR
ect
.
bottom
!=
dst_rect
.
bottom
-
dst_rect
.
top
)
{
if
(
src_r
ect
.
right
!=
dst_rect
.
right
-
dst_rect
.
left
||
src_r
ect
.
bottom
!=
dst_rect
.
bottom
-
dst_rect
.
top
)
{
TRACE
(
"No, stretching is done
\n
"
);
break
;
}
...
...
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