MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DrawSourceLine

Function DrawSourceLine

source/Debugger/Debugger_Display.cpp:2955–2979  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

2953
2954//===========================================================================
2955void DrawSourceLine( int iSourceLine, RECT &rect )
2956{
2957 char sLine[ CONSOLE_WIDTH ];
2958 memset( sLine, 0, CONSOLE_WIDTH );
2959
2960 if ((iSourceLine >=0) && (iSourceLine < g_AssemblerSourceBuffer.GetNumLines() ))
2961 {
2962 char * pSource = g_AssemblerSourceBuffer.GetLine( iSourceLine );
2963
2964// int nLenSrc = strlen( pSource );
2965// if (nLenSrc >= CONSOLE_WIDTH)
2966// bool bStop = true;
2967
2968 TextConvertTabsToSpaces( sLine, pSource, CONSOLE_WIDTH-1 ); // bugfix 2,3,1,15: fence-post error, buffer over-run
2969
2970// int nLenTab = strlen( sLine );
2971 }
2972 else
2973 {
2974 strcpy( sLine, " " );
2975 }
2976
2977 PrintText( sLine, rect );
2978 rect.top += g_nFontHeight;
2979}
2980
2981
2982//===========================================================================

Callers 1

DrawSubWindow_Source2Function · 0.85

Calls 4

TextConvertTabsToSpacesFunction · 0.85
PrintTextFunction · 0.85
GetNumLinesMethod · 0.80
GetLineMethod · 0.45

Tested by

no test coverage detected