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
171c9420
Commit
171c9420
authored
Dec 27, 2004
by
Christian Costa
Committed by
Alexandre Julliard
Dec 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fake line sweeping of the monitor.
parent
1645ab04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
main.c
dlls/ddraw/ddraw/main.c
+13
-2
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-0
No files found.
dlls/ddraw/ddraw/main.c
View file @
171c9420
...
...
@@ -1010,9 +1010,20 @@ HRESULT WINAPI
Main_DirectDraw_GetScanLine
(
LPDIRECTDRAW7
iface
,
LPDWORD
lpdwScanLine
)
{
IDirectDrawImpl
*
This
=
(
IDirectDrawImpl
*
)
iface
;
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
lpdwScanLine
)
;
static
BOOL
hide
;
*
lpdwScanLine
=
1
;
/* Since this method is called often, show the fixme only once */
if
(
!
hide
)
{
FIXME
(
"(%p)->(%p) semi-stub
\n
"
,
This
,
lpdwScanLine
);
hide
=
TRUE
;
}
/* Fake the line sweeping of the monitor */
/* FIXME: We should synchronize with a source to keep the refresh rate */
*
lpdwScanLine
=
This
->
cur_scanline
++
;
/* Assume 20 scan lines in the vertical blank */
if
(
This
->
cur_scanline
>=
This
->
height
+
20
)
This
->
cur_scanline
=
0
;
return
DD_OK
;
}
...
...
dlls/ddraw/ddraw_private.h
View file @
171c9420
...
...
@@ -111,6 +111,7 @@ struct IDirectDrawImpl
DWORD
width
,
height
;
LONG
pitch
;
DDPIXELFORMAT
pixelformat
;
DWORD
cur_scanline
;
/* Should each of these go into some structure? */
DWORD
orig_width
,
orig_height
;
...
...
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