| 233 | } |
| 234 | |
| 235 | void 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 | // |
no test coverage detected