mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[dos] direct value of r.h.bh
This commit is contained in:
parent
46297a48ff
commit
f52c889304
@ -368,7 +368,6 @@ static void dos_mouse_poll(void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int cx, cy;
|
int cx, cy;
|
||||||
char bb;
|
|
||||||
__dpmi_regs r;
|
__dpmi_regs r;
|
||||||
dos_poll_break();
|
dos_poll_break();
|
||||||
if (dos_mouse_initialized) {
|
if (dos_mouse_initialized) {
|
||||||
@ -410,11 +409,10 @@ px:
|
|||||||
memset(&r, 0, sizeof r);
|
memset(&r, 0, sizeof r);
|
||||||
r.x.ax = 3;
|
r.x.ax = 3;
|
||||||
__dpmi_int(0x33, &r);
|
__dpmi_int(0x33, &r);
|
||||||
bb = r.x.bx >> 8;
|
|
||||||
cx = dos_mouse_coord(r.x.cx);
|
cx = dos_mouse_coord(r.x.cx);
|
||||||
cy = dos_mouse_coord(r.x.dx);
|
cy = dos_mouse_coord(r.x.dx);
|
||||||
if (bb) {
|
if (r.h.bh) {
|
||||||
dos_mouse_enqueue(cx, cy, bb < 0 ? (B_DOWN | B_WHEEL_UP) : (B_DOWN | B_WHEEL_DOWN));
|
dos_mouse_enqueue(cx, cy, (char)r.h.bh < 0 ? (B_DOWN | B_WHEEL_UP) : (B_DOWN | B_WHEEL_DOWN));
|
||||||
goto x;
|
goto x;
|
||||||
}
|
}
|
||||||
if (cx != dos_mouse_last_x || cy != dos_mouse_last_y) {
|
if (cx != dos_mouse_last_x || cy != dos_mouse_last_y) {
|
||||||
|
Loading…
Reference in New Issue
Block a user