See ChangeLog entry 2000-07-28 15:00 UTC-0400 David G. Holm <dholm@jsd-llc.com>
This commit is contained in:
@@ -1,3 +1,26 @@
|
||||
2000-07-28 15:00 UTC-0400 David G. Holm <dholm@jsd-llc.com>
|
||||
|
||||
* include/hbapigt.h
|
||||
* source/rtl/gtapi.c
|
||||
* Changed hb_gtSetPos() to hb_gtSetPosContext().
|
||||
* Restored hb_gtSetPos() with only two parameters
|
||||
for Clipper GT API compatibility (what it does is
|
||||
call hb_gtSetPosContext() with the third parameter
|
||||
set to HB_GT_SET_POS_BEFORE, which still calls the
|
||||
hb_gt_SetPos() function, so that the low-level
|
||||
drivers didn't need to be changed again).
|
||||
|
||||
* source/rtl/console.c
|
||||
* source/rtl/gtapi.c
|
||||
* source/rtl/oldclear.c
|
||||
* source/rtl/setpos.c
|
||||
* source/rtl/setposbs.c
|
||||
* source/rtl/xsavescr.c
|
||||
* All calls to hb_gtSetPos() changed to hb_gtSetPosContext().
|
||||
|
||||
* source/rtl/gtwin/gtwin.c
|
||||
! Corrected call to hb_gtSetPos() to call hb_gt_SetPos().
|
||||
|
||||
2000-07-28 18:15 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
|
||||
|
||||
*source/compiler/harbour.l
|
||||
|
||||
@@ -151,7 +151,8 @@ extern USHORT hb_gtSetBlink( BOOL bBlink );
|
||||
extern USHORT hb_gtSetColorStr( char * pszColorString );
|
||||
extern USHORT hb_gtSetCursor( USHORT uiCursorShape );
|
||||
extern USHORT hb_gtSetMode( USHORT uiRows, USHORT uiCols );
|
||||
extern USHORT hb_gtSetPos( SHORT iRow, SHORT iCol, SHORT iMode );
|
||||
extern USHORT hb_gtSetPos( SHORT iRow, SHORT iCol );
|
||||
extern USHORT hb_gtSetPosContext( SHORT iRow, SHORT iCol, SHORT iMode );
|
||||
extern USHORT hb_gtSetSnowFlag( BOOL bNoSnow );
|
||||
extern void hb_gtTone( double dFrequency, double dDuration );
|
||||
extern USHORT hb_gtWrite( BYTE * pbyStr, ULONG ulLen );
|
||||
|
||||
@@ -397,7 +397,7 @@ static void hb_conDevPos( SHORT iRow, SHORT iCol )
|
||||
hb_fsSetError( uiErrorOld ); /* Restore last user file error code */
|
||||
}
|
||||
else
|
||||
hb_gtSetPos( iRow, iCol, HB_GT_SET_POS_BEFORE );
|
||||
hb_gtSetPosContext( iRow, iCol, HB_GT_SET_POS_BEFORE );
|
||||
}
|
||||
|
||||
/* NOTE: This should be placed after the hb_devpos() definition. */
|
||||
|
||||
@@ -191,7 +191,7 @@ USHORT hb_gtBox( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, B
|
||||
else
|
||||
hb_gt_HorizLine( uiTop, uiLeft, uiRight, szBox[ 1 ], ( BYTE ) s_pColor[ s_uiColorIndex ] );
|
||||
|
||||
hb_gtSetPos( uiTop + 1, uiLeft + 1, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( uiTop + 1, uiLeft + 1, HB_GT_SET_POS_AFTER );
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -220,7 +220,7 @@ USHORT hb_gtBoxD( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight )
|
||||
else
|
||||
hb_gt_HorizLine( uiTop, uiLeft, uiRight, HB_B_DOUBLE_V, ( BYTE ) s_pColor[ s_uiColorIndex ] );
|
||||
|
||||
hb_gtSetPos( uiTop + 1, uiLeft + 1, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( uiTop + 1, uiLeft + 1, HB_GT_SET_POS_AFTER );
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -249,7 +249,7 @@ USHORT hb_gtBoxS( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight )
|
||||
else
|
||||
hb_gt_HorizLine( uiTop, uiLeft, uiRight, HB_B_SINGLE_H, ( BYTE ) s_pColor[ s_uiColorIndex ] );
|
||||
|
||||
hb_gtSetPos( uiTop + 1, uiLeft + 1, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( uiTop + 1, uiLeft + 1, HB_GT_SET_POS_AFTER );
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -647,12 +647,19 @@ USHORT hb_gtGetPos( SHORT * piRow, SHORT * piCol )
|
||||
return 0;
|
||||
}
|
||||
|
||||
USHORT hb_gtSetPos( SHORT iRow, SHORT iCol, SHORT iMethod )
|
||||
USHORT hb_gtSetPos( SHORT iRow, SHORT iCol )
|
||||
{
|
||||
HB_TRACE(HB_TR_DEBUG, ("hb_gtSetPos(%hd, %hd)", iRow, iCol ));
|
||||
|
||||
return hb_gtSetPosContext( iRow, iCol, HB_GT_SET_POS_BEFORE );
|
||||
}
|
||||
|
||||
USHORT hb_gtSetPosContext( SHORT iRow, SHORT iCol, SHORT iMethod )
|
||||
{
|
||||
USHORT uiMaxRow;
|
||||
USHORT uiMaxCol;
|
||||
|
||||
HB_TRACE(HB_TR_DEBUG, ("hb_gtSetPos(%hd, %hd, %hd)", iRow, iCol, iMethod));
|
||||
HB_TRACE(HB_TR_DEBUG, ("hb_gtSetPosContext(%hd, %hd, %hd)", iRow, iCol, iMethod));
|
||||
|
||||
uiMaxRow = hb_gt_GetScreenHeight();
|
||||
uiMaxCol = hb_gt_GetScreenWidth();
|
||||
@@ -801,7 +808,7 @@ USHORT hb_gtWrite( BYTE * pStr, ULONG ulLength )
|
||||
}
|
||||
|
||||
/* Finally, save the new cursor position, even if off-screen */
|
||||
hb_gtSetPos( s_iRow, s_iCol + ( SHORT ) ulLength, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( s_iRow, s_iCol + ( SHORT ) ulLength, HB_GT_SET_POS_AFTER );
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -824,7 +831,7 @@ USHORT hb_gtWriteAt( USHORT uiRow, USHORT uiCol, BYTE * pStr, ULONG ulLength )
|
||||
}
|
||||
|
||||
/* Finally, save the new cursor position, even if off-screen */
|
||||
hb_gtSetPos( uiRow, uiCol + ( SHORT ) ulLength, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( uiRow, uiCol + ( SHORT ) ulLength, HB_GT_SET_POS_AFTER );
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -854,7 +861,7 @@ USHORT hb_gtWriteCon( BYTE * pStr, ULONG ulLength )
|
||||
iCol = ( s_iCol <= iMaxCol ) ? s_iCol : iMaxCol;
|
||||
|
||||
if( iRow != s_iRow || iCol != s_iCol )
|
||||
hb_gtSetPos( iRow, iCol, HB_GT_SET_POS_BEFORE );
|
||||
hb_gtSetPosContext( iRow, iCol, HB_GT_SET_POS_BEFORE );
|
||||
|
||||
while( ulLength-- )
|
||||
{
|
||||
@@ -940,7 +947,7 @@ USHORT hb_gtWriteCon( BYTE * pStr, ULONG ulLength )
|
||||
and cursor off top edge of display */
|
||||
hb_gtScroll( 0, 0, iMaxRow, iMaxCol, 1, 0 );
|
||||
}
|
||||
hb_gtSetPos( iRow, iCol, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( iRow, iCol, HB_GT_SET_POS_AFTER );
|
||||
bDisp = FALSE;
|
||||
bNewLine = FALSE;
|
||||
}
|
||||
|
||||
@@ -675,7 +675,7 @@ BOOL hb_gt_AdjustPos( BYTE * pStr, ULONG ulLen )
|
||||
|
||||
GetConsoleScreenBufferInfo( s_HActive, &csbi );
|
||||
|
||||
hb_gtSetPos( csbi.dwCursorPosition.Y, csbi.dwCursorPosition.X, HB_GT_SET_POS_AFTER );
|
||||
hb_gt_SetPos( csbi.dwCursorPosition.Y, csbi.dwCursorPosition.X, HB_GT_SET_POS_AFTER );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ HB_FUNC( __ATCLEAR )
|
||||
{
|
||||
if( hb_pcount() == 4 )
|
||||
{
|
||||
hb_gtSetPos( hb_parni( 1 ), hb_parni( 2 ), HB_GT_SET_POS_BEFORE );
|
||||
hb_gtSetPosContext( hb_parni( 1 ), hb_parni( 2 ), HB_GT_SET_POS_BEFORE );
|
||||
hb_gtScroll( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), 0, 0 );
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ HB_FUNC( __ATCLEAR )
|
||||
HB_FUNC( __CLEAR )
|
||||
{
|
||||
hb_gtScroll( 0, 0, hb_gtMaxRow(), hb_gtMaxCol(), 0, 0 );
|
||||
hb_gtSetPos( 0, 0, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( 0, 0, HB_GT_SET_POS_AFTER );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
HB_FUNC( SETPOS ) /* Sets the screen position */
|
||||
{
|
||||
if( ISNUM( 1 ) && ISNUM( 2 ) )
|
||||
hb_gtSetPos( hb_parni( 1 ), hb_parni( 2 ), HB_GT_SET_POS_BEFORE );
|
||||
hb_gtSetPosContext( hb_parni( 1 ), hb_parni( 2 ), HB_GT_SET_POS_BEFORE );
|
||||
}
|
||||
|
||||
HB_FUNC( ROW ) /* Return the current screen row position (zero origin) */
|
||||
|
||||
@@ -47,6 +47,6 @@ HB_FUNC( SETPOSBS ) /* Move the screen position to the right by one column */
|
||||
[vszakats] */
|
||||
|
||||
hb_gtGetPos( &iRow, &iCol );
|
||||
hb_gtSetPos( iRow, iCol + 1, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( iRow, iCol + 1, HB_GT_SET_POS_AFTER );
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ HB_FUNC( __XRESTSCREEN )
|
||||
hb_xfree( s_pBuffer );
|
||||
s_pBuffer = NULL;
|
||||
|
||||
hb_gtSetPos( s_iRow, s_iCol, HB_GT_SET_POS_AFTER );
|
||||
hb_gtSetPosContext( s_iRow, s_iCol, HB_GT_SET_POS_AFTER );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user