2002-10-19 16:50 UTC-0500 Paul Tucker <ptucker@sympatico.ca>
This commit is contained in:
@@ -8,6 +8,25 @@
|
||||
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
|
||||
2002-10-19 16:50 UTC-0500 Paul Tucker <ptucker@sympatico.ca>
|
||||
* include/hbdefs.h
|
||||
* Added definition for UINT
|
||||
* include/hbapigt.h
|
||||
* source/rtl/gtapi.c
|
||||
* source/rtl/saverest.c
|
||||
* source/rtl/xsavescr.c
|
||||
* source/rtl/gtdos/gtdos.c
|
||||
* source/rtl/gtsln/gtsln.c
|
||||
* source/rtl/gtos2/gtos2.c
|
||||
* source/rtl/gtwin/gtwin.c
|
||||
! Properly account for the fact that hb_gt_rectsize returns an int
|
||||
(ok, so we treat it as UINT, but this is better than USHORT)
|
||||
* source/rtl/gtwin/gtwin.c
|
||||
* New, highly optimized Windows console gt driver
|
||||
written by Przemyslaw Czerpak <druzus@polbox.com>
|
||||
with some (?) fixes suggested by Peter Rees <peter@rees.co.nz>
|
||||
and Marek Paliwoda <paliwoda@inetia.pl>
|
||||
|
||||
2002-10-19 16:26 UTC-0500 Paul Tucker <ptucker@sympatico.ca>
|
||||
* source/rtl/box.c
|
||||
* source/rtl/disksphb.c
|
||||
|
||||
@@ -174,7 +174,7 @@ extern USHORT hb_gtSuspend( void ); /* prepare the reminal for shell output */
|
||||
extern USHORT hb_gtResume( void ); /* resume the terminal after the shell output */
|
||||
extern int hb_gtExtendedKeySupport( void );
|
||||
extern int hb_gtReadKey( HB_inkey_enum eventmask );
|
||||
extern USHORT hb_gtRectSize( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, USHORT * puiBuffSize );
|
||||
extern USHORT hb_gtRectSize( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, UINT * puiBuffSize );
|
||||
extern USHORT hb_gtRepChar( USHORT uiRow, USHORT uiCol, BYTE byChar, USHORT uiCount );
|
||||
extern USHORT hb_gtRest( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, void * pScrBuff );
|
||||
extern USHORT hb_gtSave( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, void * pScrBuff );
|
||||
|
||||
@@ -123,6 +123,9 @@
|
||||
#undef BOOL /* boolean */
|
||||
typedef int BOOL;
|
||||
|
||||
#undef UINT
|
||||
typedef unsigned int UINT; /* compiler/target dependant */
|
||||
|
||||
#undef BYTE
|
||||
typedef unsigned char BYTE; /* 1 byte unsigned */
|
||||
|
||||
|
||||
@@ -780,7 +780,7 @@ USHORT hb_gtMaxRow( void )
|
||||
return hb_gt_GetScreenHeight() - 1;
|
||||
}
|
||||
|
||||
USHORT hb_gtRectSize( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, USHORT * uipBuffSize )
|
||||
USHORT hb_gtRectSize( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT uiRight, UINT * uipBuffSize )
|
||||
{
|
||||
HB_TRACE(HB_TR_DEBUG, ("hb_gtRectSize(%hu, %hu, %hu, %hu, %p)", uiTop, uiLeft, uiBottom, uiRight, uipBuffSize));
|
||||
|
||||
|
||||
@@ -838,7 +838,7 @@ void hb_gt_Scroll( USHORT usTop, USHORT usLeft, USHORT usBottom, USHORT usRight,
|
||||
* with C++ compilers
|
||||
*/
|
||||
SHORT usRow, usCol;
|
||||
USHORT uiSize; /* gtRectSize returns int */
|
||||
UINT uiSize;
|
||||
int iLength = ( usRight - usLeft ) + 1;
|
||||
int iCount, iColOld, iColNew, iColSize;
|
||||
|
||||
|
||||
@@ -453,13 +453,13 @@ void hb_gt_Scroll( USHORT usTop, USHORT usLeft, USHORT usBottom, USHORT usRight,
|
||||
* with C++ compilers
|
||||
*/
|
||||
SHORT usRow, usCol;
|
||||
USHORT usSize;
|
||||
UINT uiSize;
|
||||
int iLength = ( usRight - usLeft ) + 1;
|
||||
int iCount, iColOld, iColNew, iColSize;
|
||||
|
||||
hb_gtGetPos( &usRow, &usCol );
|
||||
|
||||
if( hb_gtRectSize( usTop, usLeft, usBottom, usRight, &usSize ) == 0 )
|
||||
if( hb_gtRectSize( usTop, usLeft, usBottom, usRight, &uiSize ) == 0 )
|
||||
{
|
||||
/* NOTE: 'unsigned' is used intentionally to correctly compile
|
||||
* with C++ compilers
|
||||
|
||||
@@ -632,7 +632,7 @@ void hb_gt_SetAttribute( USHORT uiTop, USHORT uiLeft, USHORT uiBottom, USHORT ui
|
||||
void hb_gt_Scroll( USHORT usTop, USHORT usLeft, USHORT usBottom, USHORT usRight, BYTE byAttr, SHORT iRows, SHORT iCols )
|
||||
{
|
||||
SHORT usSaveRow, usSaveCol;
|
||||
USHORT uiSize;
|
||||
UINT uiSize;
|
||||
|
||||
int iLength = ( usRight - usLeft ) + 1;
|
||||
int iCount, iColOld, iColNew, iColSize;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -60,7 +60,7 @@ HB_FUNC( SAVESCREEN )
|
||||
USHORT uiBottom = ISNUM( 3 ) ? hb_parni( 3 ) : hb_gtMaxRow();
|
||||
USHORT uiRight = ISNUM( 4 ) ? hb_parni( 4 ) : hb_gtMaxCol();
|
||||
|
||||
USHORT uiSize;
|
||||
UINT uiSize;
|
||||
void * pBuffer;
|
||||
|
||||
hb_gtRectSize( uiTop, uiLeft, uiBottom, uiRight, &uiSize );
|
||||
|
||||
@@ -87,7 +87,7 @@ HB_FUNC( __XSAVESCREEN )
|
||||
hb_gtGetPos( &s_iRow, &s_iCol );
|
||||
|
||||
{
|
||||
USHORT uiSize;
|
||||
UINT uiSize;
|
||||
hb_gtRectSize( 0, 0, hb_gtMaxRow(), hb_gtMaxCol(), &uiSize );
|
||||
s_pBuffer = hb_xgrab( uiSize );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user