title: game displayed in the bottom-left quarter of my screen in SDL2
body: <p>I recently updated my mac and the code that was normally running stopped functioning.
  When I now run my program (a game) the window still has the right dimensions but the elements are displayed in the bottom-left quarter of my screen.</p>
  
  <p><img src="https://i.stack.imgur.com/g0PIF.png" alt="what I see"></p>
  
  <p>I don't understand where it comes from.</p>
  
  <p>here is the .cpp that I used in the exemple:</p>
  
  <pre><code>#include "../../include/game.h"
  
  int     main(int argc, char **argv)
  {
      SDL_Window      *window;
      SDL_Renderer    *render;
      int             w;
      int             h;
  
      (void)argc;
      (void)argv;
  
      SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER);
      window = SDL_CreateWindow("lul", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, WINDOW_W, WINDOW_H, 0);
      render = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
      SDL_GetWindowSize(window, &amp;w, &amp;h);
  
      SDL_Surface     *surface;
      SDL_Texture     *texture;
  
      surface = IMG_Load("FondHome2.jpg");
      texture = SDL_CreateTextureFromSurface(render, surface);
  
      SDL_Event   event;
      bool        close_requested = false;
  
      while (!close_requested)
      {
          while (SDL_PollEvent(&amp;event))
          {
              if (event.type == SDL_QUIT)
              {
                  close_requested = true;
              }
          }
          SDL_RenderCopy(render, texture, NULL, NULL);
          SDL_RenderPresent(render);
      }
  
      return(0);
  }
  </code></pre>
  
  <p>and here is the .h used:</p>
  
  <pre><code>#ifndef GAME_H
  # define GAME_H
  
  # include &lt;SDL2/SDL.h&gt;
  # include &lt;SDL2/SDL_timer.h&gt;
  # include &lt;SDL2/SDL_image.h&gt;
  # include &lt;SDL2/SDL_ttf.h&gt;
  
  # include &lt;fstream&gt;
  # include &lt;iostream&gt;
  # include &lt;string&gt;
  # include &lt;vector&gt;
  # include &lt;stdarg.h&gt;
  # include &lt;math.h&gt;
  
  # define WINDOW_W 400
  # define WINDOW_H 300
  
  #endif
  </code></pre>