diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 5158facb3e..25661264ef 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +20000209-12:08 GMT+1 Victor Szakats + * source/rtl/mouse/mousedos.c + ! hb_mouse_GetBounds() bug fixed (there was an '-' instead of '=') + 20000209-13:50 GMT+3 Alexander Kresin * source/pp/hbpp.c * Bug fixed, noted by Ignacio Ortiz @@ -20,6 +24,7 @@ *Some formating *source/rtl/mouse/mousedos.c * hb_mouse_GetBounds() implemented + 20000209-10:43 GMT+1 Victor Szakats * utils/hbdoc/hbdoc.prg ! Misc small fixes. diff --git a/harbour/source/rtl/mouse/mousedos.c b/harbour/source/rtl/mouse/mousedos.c index cec9af3ae3..969c891901 100644 --- a/harbour/source/rtl/mouse/mousedos.c +++ b/harbour/source/rtl/mouse/mousedos.c @@ -224,7 +224,7 @@ void hb_mouse_SetBounds( int iTop, int iLeft, int iBottom, int iRight ) if( s_bPresent ) { -#if defined(__DJGPP__) ||defined(__BORLANDC__) +#if defined(__DJGPP__) || defined(__BORLANDC__) union REGS regs; iLeft *= 8; @@ -250,24 +250,19 @@ void hb_mouse_GetBounds( int * piTop, int * piLeft, int * piBottom, int * piRigh { if( s_bPresent ) { -#if defined(__DJGPP__) ||defined(__BORLANDC__) +#if defined(__DJGPP__) || defined(__BORLANDC__) union REGS regs; - regs.x.ax = 7; int86( MOUSE_INTERRUPT, ®s, ®s ); - piLeft=regs.x.cx/8 ; - piRight=regs.x.dx/8 ; - - + piLeft = regs.x.cx / 8; + piRight = regs.x.dx / 8; regs.x.ax = 8; int86( MOUSE_INTERRUPT, ®s, ®s ); - piTop=regs.x.cx/8 ; - piBottom-regs.x.dx/8 ; - + piTop = regs.x.cx / 8; + piBottom = regs.x.dx / 8; #endif } - }