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
8173e6f5
Commit
8173e6f5
authored
Sep 13, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Just use a static variable for vblank emulation.
parent
60f6c41a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
ddraw.c
dlls/ddraw/ddraw.c
+4
-9
ddraw_private.h
dlls/ddraw/ddraw_private.h
+0
-1
No files found.
dlls/ddraw/ddraw.c
View file @
8173e6f5
...
...
@@ -1520,21 +1520,16 @@ static HRESULT WINAPI ddraw1_GetMonitorFrequency(IDirectDraw *iface, DWORD *freq
*****************************************************************************/
static
HRESULT
WINAPI
ddraw7_GetVerticalBlankStatus
(
IDirectDraw7
*
iface
,
BOOL
*
status
)
{
IDirectDrawImpl
*
This
=
impl_from_IDirectDraw7
(
iface
)
;
static
BOOL
fake_vblank
;
TRACE
(
"iface %p, status %p.
\n
"
,
iface
,
status
);
/* This looks sane, the MSDN suggests it too */
EnterCriticalSection
(
&
ddraw_cs
);
if
(
!
status
)
{
LeaveCriticalSection
(
&
ddraw_cs
);
return
DDERR_INVALIDPARAMS
;
}
*
status
=
This
->
fake_vblank
;
This
->
fake_vblank
=
!
This
->
fake_vblank
;
LeaveCriticalSection
(
&
ddraw_cs
);
*
status
=
fake_vblank
;
fake_vblank
=
!
fake_vblank
;
return
DD_OK
;
}
...
...
dlls/ddraw/ddraw_private.h
View file @
8173e6f5
...
...
@@ -89,7 +89,6 @@ struct IDirectDrawImpl
BOOL
d3d_initialized
;
/* Misc ddraw fields */
BOOL
fake_vblank
;
BOOL
initialized
;
/* DirectDraw things, which are not handled by WineD3D */
...
...
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