2.6.1.35 Page Up/Down of console history while editing

This commit is contained in:
mpohoreski 2009-07-14 17:50:00 +00:00
parent 32fe379448
commit 59b07f18ee

View File

@ -647,7 +647,7 @@ void DebuggerPrint ( int x, int y, const char *pText )
}
}
//===========================================================================
void DebuggerPrintColor( int x, int y, const conchar_t * pText )
{
int nLeft = x;
@ -655,6 +655,9 @@ void DebuggerPrintColor( int x, int y, const conchar_t * pText )
conchar_t g;
const conchar_t *pSrc = pText;
if( !pText)
return;
while (g = (*pSrc))
{
if (g == '\n')
@ -1152,7 +1155,7 @@ void DrawConsoleCursor ()
}
//===========================================================================
void GetConsoleRect( const int y, RECT & rect )
void GetConsoleRect ( const int y, RECT & rect )
{
int nLineHeight = GetConsoleLineHeightPixels();
@ -1170,7 +1173,7 @@ void GetConsoleRect( const int y, RECT & rect )
}
//===========================================================================
void DrawConsoleLine( const conchar_t * pText, int y )
void DrawConsoleLine ( const conchar_t * pText, int y )
{
if (y < 0)
return;
@ -2719,6 +2722,12 @@ void DrawSubWindow_Console (Update_t bUpdate)
DebuggerSetColorFG( DebuggerGetColor( FG_CONSOLE_OUTPUT ));
DrawConsoleLine( g_aConsoleDisplay[ iLine ], y );
}
else
{
// bugfix: 2.6.1.34
// scrolled past top of console... Draw blank line
DrawConsoleLine( NULL, y );
}
iLine++;
}