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
7b57b24f
Commit
7b57b24f
authored
Dec 10, 1998
by
Ulrich Weigand
Committed by
Alexandre Julliard
Dec 10, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to CreateSystemTimer interface change.
parent
f6c4828c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
dispdib.c
graphics/dispdib.c
+1
-1
vga.c
graphics/vga.c
+2
-2
miscemu.h
include/miscemu.h
+1
-1
vga.h
include/vga.h
+1
-1
module.c
loader/dos/module.c
+1
-1
instr.c
miscemu/instr.c
+1
-1
dosmem.c
msdos/dosmem.c
+1
-1
No files found.
graphics/dispdib.c
View file @
7b57b24f
...
...
@@ -66,7 +66,7 @@ static void DISPDIB_Show(LPBITMAPINFOHEADER lpbi,LPSTR lpBits,WORD uFlags)
memcpy
(
surf
,
lpBits
,
Width
);
}
VGA_Poll
();
VGA_Poll
(
0
);
}
/*********************************************************************
...
...
graphics/vga.c
View file @
7b57b24f
...
...
@@ -50,7 +50,7 @@ int VGA_SetMode(unsigned Xres,unsigned Yres,unsigned Depth)
vga_refresh
=
0
;
InitializeCriticalSection
(
&
vga_crit
);
/* poll every 20ms (50fps should provide adequate responsiveness) */
poll_timer
=
CreateSystemTimer
(
20
,
(
FARPROC16
)
VGA_Poll
);
poll_timer
=
CreateSystemTimer
(
20
,
VGA_Poll
);
}
return
0
;
}
...
...
@@ -120,7 +120,7 @@ void VGA_Unlock(void)
lpddsurf
->
lpvtbl
->
fnUnlock
(
lpddsurf
,
sdesc
.
y
.
lpSurface
);
}
void
VGA_Poll
(
void
)
void
VGA_Poll
(
WORD
timer
)
{
char
*
dat
;
unsigned
Pitch
,
Height
,
Width
;
...
...
include/miscemu.h
View file @
7b57b24f
...
...
@@ -19,7 +19,7 @@ extern DWORD DOSMEM_ErrorCall;
extern
DWORD
DOSMEM_ErrorBuffer
;
extern
BOOL32
DOSMEM_Init
(
HMODULE16
hModule
);
extern
void
DOSMEM_Tick
(
void
);
extern
void
DOSMEM_Tick
(
WORD
timer
);
extern
WORD
DOSMEM_AllocSelector
(
WORD
);
extern
char
*
DOSMEM_MemoryBase
(
HMODULE16
hModule
);
extern
LPVOID
DOSMEM_GetBlock
(
HMODULE16
hModule
,
UINT32
size
,
UINT16
*
p
);
...
...
include/vga.h
View file @
7b57b24f
...
...
@@ -17,7 +17,7 @@ void VGA_SetPalette(PALETTEENTRY*pal,int start,int len);
void
VGA_SetQuadPalette
(
RGBQUAD
*
color
,
int
start
,
int
len
);
LPSTR
VGA_Lock
(
unsigned
*
Pitch
,
unsigned
*
Height
,
unsigned
*
Width
,
unsigned
*
Depth
);
void
VGA_Unlock
(
void
);
void
VGA_Poll
(
void
);
void
VGA_Poll
(
WORD
timer
);
void
VGA_ioport_out
(
WORD
port
,
BYTE
val
);
BYTE
VGA_ioport_in
(
WORD
port
);
...
...
loader/dos/module.c
View file @
7b57b24f
...
...
@@ -384,7 +384,7 @@ int MZ_InitTask( LPDOSTASK lpDosTask )
exit
(
1
);
}
/* start simulated system 55Hz timer */
lpDosTask
->
system_timer
=
CreateSystemTimer
(
55
,
(
FARPROC16
)
MZ_Tick
);
lpDosTask
->
system_timer
=
CreateSystemTimer
(
55
,
MZ_Tick
);
TRACE
(
module
,
"created 55Hz timer tick, handle=%d
\n
"
,
lpDosTask
->
system_timer
);
return
lpDosTask
->
hModule
;
}
...
...
miscemu/instr.c
View file @
7b57b24f
...
...
@@ -64,7 +64,7 @@ static BOOL32 INSTR_ReplaceSelector( SIGCONTEXT *context, WORD *sel )
{
static
WORD
sys_timer
=
0
;
if
(
!
sys_timer
)
sys_timer
=
CreateSystemTimer
(
55
,
(
FARPROC16
)
DOSMEM_Tick
);
sys_timer
=
CreateSystemTimer
(
55
,
DOSMEM_Tick
);
*
sel
=
DOSMEM_BiosSeg
;
return
TRUE
;
}
...
...
msdos/dosmem.c
View file @
7b57b24f
...
...
@@ -363,7 +363,7 @@ BOOL32 DOSMEM_Init(HMODULE16 hModule)
*
* Increment the BIOS tick counter. Called by timer signal handler.
*/
void
DOSMEM_Tick
(
void
)
void
DOSMEM_Tick
(
WORD
timer
)
{
if
(
pBiosData
)
pBiosData
->
Ticks
++
;
}
...
...
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