comparison src/os_msdos.c @ 799:6beb2c667935

updated for version 7.0b
author vimboss
date Fri, 24 Mar 2006 22:21:52 +0000
parents 8ae24f338cab
children 302520c08584
comparison
equal deleted inserted replaced
798:95dac6af3b3a 799:6beb2c667935
709 #define FOREVER 1999999999L 709 #define FOREVER 1999999999L
710 710
711 static int 711 static int
712 WaitForChar(long msec) 712 WaitForChar(long msec)
713 { 713 {
714 union REGS regs;
715 long starttime = 0; 714 long starttime = 0;
716 int x, y;
717 715
718 if (msec != 0) 716 if (msec != 0)
719 starttime = biostime(0, 0L); 717 starttime = biostime(0, 0L);
720 718
721 for (;;) 719 for (;;)
722 { 720 {
723 #ifdef FEAT_MOUSE 721 #ifdef FEAT_MOUSE
724 long clicktime; 722 long clicktime;
725 static int old_status = 0; 723 static int old_status = 0;
724 union REGS regs;
725 int x, y;
726 726
727 if (mouse_avail && mouse_active && mouse_click < 0) 727 if (mouse_avail && mouse_active && mouse_click < 0)
728 { 728 {
729 regs.x.ax = 3; 729 regs.x.ax = 3;
730 int86(0x33, &regs, &regs); /* check mouse status */ 730 int86(0x33, &regs, &regs); /* check mouse status */