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
de610881
Commit
de610881
authored
Apr 19, 2002
by
Christian Costa
Committed by
Alexandre Julliard
Apr 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VGA_ioport_in: Fake the occurrence of the vertical refresh when no
graphic mode has been set.
parent
b8ae37cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
vga.c
dlls/winedos/vga.c
+10
-1
No files found.
dlls/winedos/vga.c
View file @
de610881
...
...
@@ -43,6 +43,8 @@ static int vga_height;
static
int
vga_depth
;
static
BYTE
vga_text_attr
;
static
BOOL
vga_mode_initialized
=
FALSE
;
static
CRITICAL_SECTION
vga_lock
=
CRITICAL_SECTION_INIT
(
"VGA"
);
typedef
HRESULT
(
WINAPI
*
DirectDrawCreateProc
)(
LPGUID
,
LPDIRECTDRAW
*
,
LPUNKNOWN
);
...
...
@@ -316,6 +318,8 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth)
par
.
Depth
=
(
Depth
<
8
)
?
8
:
Depth
;
vga_mode_initialized
=
TRUE
;
MZ_RunInThread
(
VGA_DoSetMode
,
(
ULONG_PTR
)
&
par
);
return
par
.
ret
;
}
...
...
@@ -734,7 +738,12 @@ BYTE VGA_ioport_in( WORD port )
/* since we don't (yet?) serve DOS VM requests while VGA_Poll is running,
we need to fake the occurrence of the vertical refresh */
ret
=
vga_refresh
?
0x00
:
0x08
;
vga_refresh
=
0
;
if
(
vga_mode_initialized
)
vga_refresh
=
0
;
else
/* Also fake the occurence of the vertical refresh when no graphic
mode has been set */
vga_refresh
=!
vga_refresh
;
break
;
default:
ret
=
0xff
;
...
...
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