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
5f83f2cd
Commit
5f83f2cd
authored
Jul 18, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement ddraw7_GetVerticalBlankStatus() on top of wined3d_get_adapter_raster_status().
parent
2bfc5214
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
ddraw.c
dlls/ddraw/ddraw.c
+13
-17
No files found.
dlls/ddraw/ddraw.c
View file @
5f83f2cd
...
...
@@ -1620,31 +1620,27 @@ static HRESULT WINAPI ddraw1_GetMonitorFrequency(IDirectDraw *iface, DWORD *freq
return
ddraw7_GetMonitorFrequency
(
&
ddraw
->
IDirectDraw7_iface
,
frequency
);
}
/*****************************************************************************
* IDirectDraw7::GetVerticalBlankStatus
*
* Returns the Vertical blank status of the monitor. This should be in WineD3D
* too basically, but as it's a semi stub, I didn't create a function there
*
* Params:
* status: Pointer to a BOOL to be filled with the vertical blank status
*
* Returns
* DD_OK on success
* DDERR_INVALIDPARAMS if status is NULL
*
*****************************************************************************/
static
HRESULT
WINAPI
ddraw7_GetVerticalBlankStatus
(
IDirectDraw7
*
iface
,
BOOL
*
status
)
{
static
BOOL
fake_vblank
;
struct
ddraw
*
ddraw
=
impl_from_IDirectDraw7
(
iface
);
struct
wined3d_raster_status
raster_status
;
HRESULT
hr
;
TRACE
(
"iface %p, status %p.
\n
"
,
iface
,
status
);
if
(
!
status
)
return
DDERR_INVALIDPARAMS
;
*
status
=
fake_vblank
;
fake_vblank
=
!
fake_vblank
;
wined3d_mutex_lock
();
hr
=
wined3d_get_adapter_raster_status
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
&
raster_status
);
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get raster status, hr %#x.
\n
"
,
hr
);
return
hr
;
}
*
status
=
raster_status
.
in_vblank
;
return
DD_OK
;
}
...
...
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