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

Function GetConsoleLineHeightPixels

source/Debugger/Debugger_Display.cpp:1255–1275  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1253
1254//===========================================================================
1255int GetConsoleLineHeightPixels()
1256{
1257 int nHeight = g_aFontConfig[ FONT_CONSOLE ]._nFontHeight; // _nLineHeight; // _nFontHeight;
1258/*
1259 if (g_iFontSpacing == FONT_SPACING_CLASSIC)
1260 {
1261 nHeight++; // "Classic" Height/Spacing
1262 }
1263 else
1264 if (g_iFontSpacing == FONT_SPACING_CLEAN)
1265 {
1266 nHeight++;
1267 }
1268 else
1269 if (g_iFontSpacing == FONT_SPACING_COMPRESSED)
1270 {
1271 // default case handled
1272 }
1273*/
1274 return nHeight;
1275}
1276
1277//===========================================================================
1278int GetConsoleTopPixels( int y )

Callers 3

GetConsoleTopPixelsFunction · 0.85
DrawConsoleCursorFunction · 0.85
GetConsoleRectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected