title: SetConsoleDisplayMode() function is not working setting my window to fullscreen
body: <p>I have these global variables:</p>
  <pre><code>//width and height of the window
  int WIDTH = GetSystemMetrics(SM_CXSCREEN);
  int HEIGHT = GetSystemMetrics(SM_CYSCREEN);
  //width and height of one character, font dimensions
  constexpr int dW = 8, dH = 8;
  </code></pre>
  <p>I'm trying to create an ASCII engine and this is the function to set up the window, it's only used once at the beginning of the program.</p>
  <pre><code>//set the font
      CONSOLE_FONT_INFOEX cf = {0};
      cf.cbSize = sizeof cf;
      cf.dwFontSize.X = dW;
      cf.dwFontSize.Y = dH;
      wcscpy(cf.FaceName, L&quot;Terminal&quot;);
      SetCurrentConsoleFontEx(GetStdHandle(STD_OUTPUT_HANDLE), 0, &amp;cf);
  
      HWND console = GetConsoleWindow();
      RECT ConsoleRect;
      GetWindowRect(console, &amp;ConsoleRect);
      HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE);
      CONSOLE_SCREEN_BUFFER_INFO csbi;
      GetConsoleScreenBufferInfo(hstdout, &amp;csbi);
  
  //set the window
  //fullscreen and remove vertical bar
      csbi.dwSize.X = csbi.dwMaximumWindowSize.X;
      csbi.dwSize.Y = csbi.dwMaximumWindowSize.Y;
      SetConsoleScreenBufferSize(hstdout, csbi.dwSize);
      MoveWindow(console, 0, 0, WIDTH, HEIGHT, TRUE);
      SetConsoleDisplayMode(hstdout, CONSOLE_FULLSCREEN_MODE, 0);
      ShowScrollBar(console, SB_BOTH, FALSE);
  </code></pre>
  <p>Before my code worked, but I changed something minor, and I changed something in window console settings and now it doesn't work.</p>
  <p>I'm using Visual Studio if that's important.</p>