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
36420ef4
Commit
36420ef4
authored
Sep 20, 2004
by
Jukka Heinonen
Committed by
Alexandre Julliard
Sep 20, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for int33 show/hide mouse cursor calls.
parent
0e5d9b56
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
2 deletions
+49
-2
int33.c
dlls/winedos/int33.c
+16
-2
vga.c
dlls/winedos/vga.c
+32
-0
vga.h
dlls/winedos/vga.h
+1
-0
No files found.
dlls/winedos/int33.c
View file @
36420ef4
...
...
@@ -40,6 +40,7 @@ static struct
FARPROC16
callback
;
WORD
callmask
;
WORD
VMPratio
,
HMPratio
,
oldx
,
oldy
;
WORD
hide_count
;
}
mouse_info
;
...
...
@@ -58,6 +59,10 @@ static void INT33_ResetMouse( CONTEXT86 *context )
mouse_info
.
HMPratio
=
8
;
mouse_info
.
VMPratio
=
16
;
/* Hide the mouse cursor */
mouse_info
.
hide_count
=
1
;
VGA_ShowMouse
(
FALSE
);
if
(
context
)
{
SET_AX
(
context
,
0xFFFF
);
/* driver installed */
...
...
@@ -81,11 +86,20 @@ void WINAPI DOSVM_Int33Handler( CONTEXT86 *context )
break
;
case
0x0001
:
FIXME
(
"Show mouse cursor
\n
"
);
TRACE
(
"Show mouse cursor, old hide count: %d
\n
"
,
mouse_info
.
hide_count
);
if
(
mouse_info
.
hide_count
>=
1
)
mouse_info
.
hide_count
--
;
if
(
!
mouse_info
.
hide_count
)
VGA_ShowMouse
(
TRUE
);
break
;
case
0x0002
:
FIXME
(
"Hide mouse cursor
\n
"
);
TRACE
(
"Hide mouse cursor, old hide count: %d
\n
"
,
mouse_info
.
hide_count
);
if
(
!
mouse_info
.
hide_count
)
VGA_ShowMouse
(
FALSE
);
mouse_info
.
hide_count
++
;
break
;
case
0x0003
:
...
...
dlls/winedos/vga.c
View file @
36420ef4
...
...
@@ -653,6 +653,38 @@ int VGA_GetWindowStart()
return
vga_fb_window
;
}
/**********************************************************************
* VGA_DoShowMouse
*
* Callback for VGA_ShowMouse.
*/
static
WINAPI
void
VGA_DoShowMouse
(
ULONG_PTR
show
)
{
INT
rv
;
do
{
rv
=
ShowCursor
(
show
);
}
while
(
show
?
(
rv
<
0
)
:
(
rv
>=
0
)
);
}
/**********************************************************************
* VGA_ShowMouse
*
* If argument is TRUE, unconditionally show mouse cursor.
* If argument is FALSE, unconditionally hide mouse cursor.
* This only works in graphics mode.
*/
void
VGA_ShowMouse
(
BOOL
show
)
{
if
(
lpddraw
)
MZ_RunInThread
(
VGA_DoShowMouse
,
(
ULONG_PTR
)
show
);
}
/*** TEXT MODE ***/
/* prepare the text mode video memory copy that is used to only
...
...
dlls/winedos/vga.h
View file @
36420ef4
...
...
@@ -40,6 +40,7 @@ LPSTR VGA_Lock(unsigned*Pitch,unsigned*Height,unsigned*Width,unsigned*Depth);
void
VGA_Unlock
(
void
);
void
VGA_SetWindowStart
(
int
start
);
int
VGA_GetWindowStart
();
void
VGA_ShowMouse
(
BOOL
show
);
/* text mode */
void
VGA_InitAlphaMode
(
unsigned
*
Xres
,
unsigned
*
Yres
);
...
...
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