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
ce23e9b3
Commit
ce23e9b3
authored
May 23, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
May 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scale mouse coordinates to default width 640.
parent
76ba0375
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
int33.c
msdos/int33.c
+13
-3
No files found.
msdos/int33.c
View file @
ce23e9b3
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
#include "winuser.h"
#include "winuser.h"
#include "miscemu.h"
#include "miscemu.h"
#include "dosexe.h"
#include "dosexe.h"
#include "vga.h"
#include "debugtools.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
int
)
DEFAULT_DEBUG_CHANNEL
(
int
)
...
@@ -41,7 +42,10 @@ void WINAPI INT_Int33Handler( CONTEXT86 *context )
...
@@ -41,7 +42,10 @@ void WINAPI INT_Int33Handler( CONTEXT86 *context )
CX_reg
(
context
)
=
sys
->
x
;
CX_reg
(
context
)
=
sys
->
x
;
DX_reg
(
context
)
=
sys
->
y
;
DX_reg
(
context
)
=
sys
->
y
;
break
;
break
;
case
0x0C
:
/* Define interrupt subroutine */
case
0x04
:
FIXME
(
"Position mouse cursor
\n
"
);
break
;
case
0x0C
:
TRACE
(
"Define mouse interrupt subroutine
\n
"
);
TRACE
(
"Define mouse interrupt subroutine
\n
"
);
sys
->
callmask
=
CX_reg
(
context
);
sys
->
callmask
=
CX_reg
(
context
);
sys
->
callback
=
(
FARPROC16
)
PTR_SEG_OFF_TO_SEGPTR
(
ES_reg
(
context
),
DX_reg
(
context
));
sys
->
callback
=
(
FARPROC16
)
PTR_SEG_OFF_TO_SEGPTR
(
ES_reg
(
context
),
DX_reg
(
context
));
...
@@ -77,10 +81,16 @@ void WINAPI INT_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
...
@@ -77,10 +81,16 @@ void WINAPI INT_Int33Message(UINT message,WPARAM wParam,LPARAM lParam)
{
{
MOUSESYSTEM
*
sys
=
(
MOUSESYSTEM
*
)
DOSVM_GetSystemData
(
0x33
);
MOUSESYSTEM
*
sys
=
(
MOUSESYSTEM
*
)
DOSVM_GetSystemData
(
0x33
);
WORD
mask
=
0
;
WORD
mask
=
0
;
unsigned
Height
,
Width
,
SX
=
1
,
SY
=
1
;
if
(
!
sys
)
return
;
if
(
!
sys
)
return
;
sys
->
x
=
LOWORD
(
lParam
);
if
(
!
VGA_GetMode
(
&
Height
,
&
Width
,
NULL
))
{
sys
->
y
=
HIWORD
(
lParam
);
/* may need to do some coordinate scaling */
SX
=
640
/
Width
;
if
(
!
SX
)
SX
=
1
;
}
sys
->
x
=
LOWORD
(
lParam
)
*
SX
;
sys
->
y
=
HIWORD
(
lParam
)
*
SY
;
switch
(
message
)
{
switch
(
message
)
{
case
WM_MOUSEMOVE
:
case
WM_MOUSEMOVE
:
mask
|=
0x01
;
mask
|=
0x01
;
...
...
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