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
cc10600b
Commit
cc10600b
authored
Sep 01, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Print a FIXME for any flags passed to wined3d_surface_flip().
parent
ff0cea33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
surface.c
dlls/wined3d/surface.c
+9
-14
No files found.
dlls/wined3d/surface.c
View file @
cc10600b
...
...
@@ -3748,6 +3748,15 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined
TRACE
(
"surface %p, override %p, flags %#x.
\n
"
,
surface
,
override
,
flags
);
if
(
flags
)
{
static
UINT
once
;
if
(
!
once
++
)
FIXME
(
"Ignoring flags %#x.
\n
"
,
flags
);
else
WARN
(
"Ignoring flags %#x.
\n
"
,
flags
);
}
/* FIXME: This will also prevent overlay flips, since overlays aren't on
* a swapchain either. */
if
(
surface
->
container
.
type
!=
WINED3D_CONTAINER_SWAPCHAIN
)
...
...
@@ -3775,20 +3784,6 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined
return
WINED3D_OK
;
}
/* Just overwrite the swapchain presentation interval. This is ok because
* only ddraw apps can call Flip, and only d3d8 and d3d9 applications
* specify the presentation interval. */
if
(
!
(
flags
&
(
WINEDDFLIP_NOVSYNC
|
WINEDDFLIP_INTERVAL2
|
WINEDDFLIP_INTERVAL3
|
WINEDDFLIP_INTERVAL4
)))
swapchain
->
presentParms
.
PresentationInterval
=
WINED3DPRESENT_INTERVAL_ONE
;
else
if
(
flags
&
WINEDDFLIP_NOVSYNC
)
swapchain
->
presentParms
.
PresentationInterval
=
WINED3DPRESENT_INTERVAL_IMMEDIATE
;
else
if
(
flags
&
WINEDDFLIP_INTERVAL2
)
swapchain
->
presentParms
.
PresentationInterval
=
WINED3DPRESENT_INTERVAL_TWO
;
else
if
(
flags
&
WINEDDFLIP_INTERVAL3
)
swapchain
->
presentParms
.
PresentationInterval
=
WINED3DPRESENT_INTERVAL_THREE
;
else
swapchain
->
presentParms
.
PresentationInterval
=
WINED3DPRESENT_INTERVAL_FOUR
;
return
wined3d_swapchain_present
(
swapchain
,
NULL
,
NULL
,
swapchain
->
win_handle
,
NULL
,
0
);
}
...
...
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