From e8b53fedc5a0d53d2accf2225bbb5c7de6c3bf38 Mon Sep 17 00:00:00 2001 From: Paul Tucker Date: Tue, 10 Aug 1999 05:08:46 +0000 Subject: [PATCH] *** empty log message *** --- harbour/ChangeLog | 5 +++++ harbour/source/rtl/gt/gt_tpl.c | 3 +++ harbour/source/rtl/gt/gtwin.c | 10 +++++----- harbour/source/rtl/gtapi.c | 7 ++----- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b08dbd624c..0607771b50 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,8 @@ +19990810-00:55 EDT Paul Tucker + * source/rtl/gtapi.c source/rtl/gt/gtwin/c source/rtl/gt/gt_tpl.c + * minor formatting changes + * corrected an instance of nested comments. + 19990809-14:15 EDT Paul Tucker + source/rtl/xsavescr.prg * support for save screen and restore screen commands. diff --git a/harbour/source/rtl/gt/gt_tpl.c b/harbour/source/rtl/gt/gt_tpl.c index fde0f7c0aa..8922d97eee 100644 --- a/harbour/source/rtl/gt/gt_tpl.c +++ b/harbour/source/rtl/gt/gt_tpl.c @@ -5,6 +5,7 @@ /* * GT_TPL.C: Video subsystem template. * + * User programs should never call this layer directly! */ /* TODO: include any standard headers here */ @@ -76,7 +77,9 @@ int hb_gt_GetCursorStyle(void) } else { +*/ /* example from the dos driver */ +/* hb_gt_GetCursorSize( &start, &end ) if((start == 32) && (end == 32)) { diff --git a/harbour/source/rtl/gt/gtwin.c b/harbour/source/rtl/gt/gtwin.c index b5744e689d..94821079e4 100644 --- a/harbour/source/rtl/gt/gtwin.c +++ b/harbour/source/rtl/gt/gtwin.c @@ -71,9 +71,9 @@ void hb_gt_Done(void) if( HOutput != HOriginal ) { COORD coDest = {0, 0}; - COORD coBuf; /* the size of the buffer to read into */ - CHAR_INFO *pCharInfo; /* buffer to store info from ReadConsoleOutput */ - SMALL_RECT srWin; /* source rectangle to read from */ + COORD coBuf; /* the size of the buffer to read into */ + CHAR_INFO *pCharInfo; /* buffer to store info from ReadConsoleOutput */ + SMALL_RECT srWin; /* source rectangle to read from */ CONSOLE_SCREEN_BUFFER_INFO csbi; CONSOLE_CURSOR_INFO cci; @@ -82,7 +82,7 @@ void hb_gt_Done(void) srWin.Right = (coBuf.X = hb_gt_GetScreenWidth()) -1; /* allocate a buffer for the screen rectangle */ - pCharInfo = (CHAR_INFO *)hb_xgrab(coBuf.X * coBuf.Y * sizeof(CHAR_INFO)); + pCharInfo = (CHAR_INFO *)hb_xgrab(coBuf.Y * coBuf.X * sizeof(CHAR_INFO)); /* read the screen rectangle into the buffer */ ReadConsoleOutput(HOutput, /* current screen handle */ @@ -423,7 +423,7 @@ void hb_gt_DispBegin(void) srWin.Right = (coBuf.X = hb_gt_GetScreenWidth()) -1; /* allocate a buffer for the screen rectangle */ - pCharInfo = (CHAR_INFO *)hb_xgrab(coBuf.X * coBuf.Y * sizeof(CHAR_INFO)); + pCharInfo = (CHAR_INFO *)hb_xgrab(coBuf.Y * coBuf.X * sizeof(CHAR_INFO)); /* read the screen rectangle into the buffer */ ReadConsoleOutput(HOutput, /* current screen handle */ diff --git a/harbour/source/rtl/gtapi.c b/harbour/source/rtl/gtapi.c index 239c2eca79..a29444d2a2 100644 --- a/harbour/source/rtl/gtapi.c +++ b/harbour/source/rtl/gtapi.c @@ -61,9 +61,6 @@ /* TODO: functions not implemented yet int hb_gtPostExt(void); int hb_gtPreExt(void); -int hb_gtGetBlink(BOOL * bBlink); -int hb_gtSetBlink(BOOL bBlink); -int hb_gtSetMode(USHORT uiRows, USHORT uiCols); */ static USHORT s_uiCurrentRow = 0; @@ -98,11 +95,11 @@ void hb_gtInit(void) void hb_gtExit(void) { +/* ptucker */ while( s_uiDispCount ) hb_gtDispEnd(); hb_gt_Done(); -/* ptucker */ hb_xfree( _Color ); } @@ -537,7 +534,7 @@ int hb_gtRepChar(USHORT uiRow, USHORT uiCol, USHORT uiChar, USHORT uiCount) char buff[255]; memset(buff, uiChar, uiCount); - buff[uiCount] = 0x0; + buff[uiCount] = 0; rc=hb_gtSetPos(uiRow, uiCol); if(rc != 0) return(rc);