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
662de19a
Commit
662de19a
authored
Aug 03, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move some flags handling from surface_cpu_blt() to wined3d_surface_blt().
parent
92e616f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
24 deletions
+25
-24
surface.c
dlls/wined3d/surface.c
+25
-24
No files found.
dlls/wined3d/surface.c
View file @
662de19a
...
...
@@ -1340,6 +1340,31 @@ HRESULT CDECL wined3d_surface_blt(struct wined3d_surface *dst_surface, const REC
memset
(
&
src_rect
,
0
,
sizeof
(
src_rect
));
}
if
(
!
fx
||
!
(
fx
->
dwDDFX
))
flags
&=
~
WINEDDBLT_DDFX
;
if
(
flags
&
WINEDDBLT_WAIT
)
flags
&=
~
WINEDDBLT_WAIT
;
if
(
flags
&
WINEDDBLT_ASYNC
)
{
static
unsigned
int
once
;
if
(
!
once
++
)
FIXME
(
"Can't handle WINEDDBLT_ASYNC flag.
\n
"
);
flags
&=
~
WINEDDBLT_ASYNC
;
}
/* WINEDDBLT_DONOTWAIT appeared in DX7. */
if
(
flags
&
WINEDDBLT_DONOTWAIT
)
{
static
unsigned
int
once
;
if
(
!
once
++
)
FIXME
(
"Can't handle WINEDDBLT_DONOTWAIT flag.
\n
"
);
flags
&=
~
WINEDDBLT_DONOTWAIT
;
}
if
(
!
device
->
d3d_initialized
)
{
WARN
(
"D3D not initialized, using fallback.
\n
"
);
...
...
@@ -6594,8 +6619,6 @@ static HRESULT surface_cpu_blt(struct wined3d_surface *dst_surface, const RECT *
wined3d_surface_map
(
dst_surface
,
&
dlock
,
NULL
,
0
);
}
if
(
!
fx
||
!
(
fx
->
dwDDFX
))
flags
&=
~
WINEDDBLT_DDFX
;
if
(
src_format
->
flags
&
dst_format
->
flags
&
WINED3DFMT_FLAG_FOURCC
)
{
if
(
!
dst_rect
||
src_surface
==
dst_surface
)
...
...
@@ -6617,28 +6640,6 @@ static HRESULT surface_cpu_blt(struct wined3d_surface *dst_surface, const RECT *
else
dbuf
=
(
BYTE
*
)
dlock
.
pBits
+
(
xdst
.
top
*
dlock
.
Pitch
)
+
(
xdst
.
left
*
bpp
);
if
(
flags
&
WINEDDBLT_WAIT
)
{
flags
&=
~
WINEDDBLT_WAIT
;
}
if
(
flags
&
WINEDDBLT_ASYNC
)
{
static
BOOL
displayed
=
FALSE
;
if
(
!
displayed
)
FIXME
(
"Can't handle WINEDDBLT_ASYNC flag right now.
\n
"
);
displayed
=
TRUE
;
flags
&=
~
WINEDDBLT_ASYNC
;
}
if
(
flags
&
WINEDDBLT_DONOTWAIT
)
{
/* WINEDDBLT_DONOTWAIT appeared in DX7 */
static
BOOL
displayed
=
FALSE
;
if
(
!
displayed
)
FIXME
(
"Can't handle WINEDDBLT_DONOTWAIT flag right now.
\n
"
);
displayed
=
TRUE
;
flags
&=
~
WINEDDBLT_DONOTWAIT
;
}
/* First, all the 'source-less' blits */
if
(
flags
&
WINEDDBLT_COLORFILL
)
{
...
...
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