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
5b093e6b
Commit
5b093e6b
authored
Jul 24, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Implement ddraw7_GetMonitorFrequency() on top of wined3d_get_adapter_display_mode().
parent
1f6febea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
20 deletions
+17
-20
ddraw.c
dlls/ddraw/ddraw.c
+17
-20
No files found.
dlls/ddraw/ddraw.c
View file @
5b093e6b
...
...
@@ -1568,28 +1568,25 @@ static HRESULT WINAPI ddraw1_GetFourCCCodes(IDirectDraw *iface, DWORD *codes_cou
return
ddraw7_GetFourCCCodes
(
&
ddraw
->
IDirectDraw7_iface
,
codes_count
,
codes
);
}
/*****************************************************************************
* IDirectDraw7::GetMonitorFrequency
*
* Returns the monitor's frequency
*
* Exists in Version 1, 2, 4 and 7
*
* Params:
* Freq: Pointer to a DWORD to write the frequency to
*
* Returns
* Always returns DD_OK
*
*****************************************************************************/
static
HRESULT
WINAPI
ddraw7_GetMonitorFrequency
(
IDirectDraw7
*
iface
,
DWORD
*
Freq
)
static
HRESULT
WINAPI
ddraw7_GetMonitorFrequency
(
IDirectDraw7
*
iface
,
DWORD
*
frequency
)
{
FIXME
(
"iface %p, frequency %p stub!
\n
"
,
iface
,
Freq
);
struct
ddraw
*
ddraw
=
impl_from_IDirectDraw7
(
iface
);
struct
wined3d_display_mode
mode
;
HRESULT
hr
;
TRACE
(
"iface %p, frequency %p.
\n
"
,
iface
,
frequency
);
wined3d_mutex_lock
();
hr
=
wined3d_get_adapter_display_mode
(
ddraw
->
wined3d
,
WINED3DADAPTER_DEFAULT
,
&
mode
,
NULL
);
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to get display mode, hr %#x.
\n
"
,
hr
);
return
hr
;
}
*
frequency
=
mode
.
refresh_rate
;
/* Ideally this should be in WineD3D, as it concerns the screen setup,
* but for now this should make the games happy
*/
*
Freq
=
60
;
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