MCPcopy Create free account
hub / github.com/ZDoom/Raze / C_InitConsole

Function C_InitConsole

source/common/console/c_console.cpp:235–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void C_InitConsole (int width, int height, bool ingame)
236{
237 int cwidth, cheight;
238
239 vidactive = ingame;
240 if (CurrentConsoleFont != NULL)
241 {
242 cwidth = CurrentConsoleFont->GetCharWidth ('M');
243 cheight = CurrentConsoleFont->GetHeight();
244 }
245 else
246 {
247 cwidth = cheight = 8;
248 }
249 ConWidth = (width - LEFTMARGIN - RIGHTMARGIN);
250 CmdLine.ConCols = ConWidth / cwidth;
251
252 if (conbuffer == NULL) conbuffer = new FConsoleBuffer;
253}
254
255//==========================================================================
256//

Callers 2

RunGameFunction · 0.85
C_NewModeAdjustFunction · 0.85

Calls 2

GetCharWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected