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

Function CmdConfigFontMode

source/Debugger/Debugger_Win32.cpp:96–110  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

94
95//===========================================================================
96static Update_t CmdConfigFontMode(int nArgs)
97{
98 if (nArgs != 2)
99 return Help_Arg_1(CMD_CONFIG_FONT);
100
101 int nMode = g_aArgs[2].nValue;
102
103 if ((nMode < 0) || (nMode >= NUM_FONT_SPACING))
104 return Help_Arg_1(CMD_CONFIG_FONT);
105
106 g_iFontSpacing = nMode;
107 _UpdateWindowFontHeights(g_aFontConfig[FONT_DISASM_DEFAULT]._nFontHeight);
108
109 return UPDATE_CONSOLE_DISPLAY | UPDATE_DISASM;
110}
111
112//===========================================================================
113bool _CmdConfigFont(int iFont, LPCSTR pFontName, int iPitchFamily, int nFontHeight)

Callers 1

CmdConfigFontFunction · 0.85

Calls 2

Help_Arg_1Function · 0.85
_UpdateWindowFontHeightsFunction · 0.85

Tested by

no test coverage detected