title: SDL_TTF Rendering in the wrong place
body: <p>I have been developing with SDL for a while now,
  but thought i needed another challenge.
  So I decided to draw some text on the screen using SDL_TTF.</p>
  
  <p>I try to render the text at 0,0 but it is a bit below the screenborder.
  So that means it is not rendering fully at 0,0.</p>
  
  <p>This code is just for testing purposes.</p>
  
  <p>Here is the code I use at the time for testing:</p>
  
  <pre><code>#include &lt;SDL.h&gt;
  #include &lt;SDL_ttf.h&gt;
  #include &lt;iostream&gt;
  
  int main(int argc, char* args[])
  {
  SDL_Texture* tex;
  
  SDL_Init(SDL_INIT_EVERYTHING);
  SDL_Window *win = SDL_CreateWindow("Font drawing test", 100, 100, 640, 480, SDL_WINDOW_SHOWN);
  SDL_Renderer *ren = SDL_CreateRenderer(win, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
  TTF_Init();
  
  while (true)
  {
      SDL_RenderClear(ren);
      TTF_Font* font = TTF_OpenFont("./Resources/test.ttf", 72);
      SDL_Surface *surf = TTF_RenderText_Blended(font, "Test", SDL_Color{ 255, 255, 255, 255 });
      tex = SDL_CreateTextureFromSurface(ren, surf);
      SDL_RenderCopy(ren, tex, NULL, new SDL_Rect{ 0, 0, 100, 100 });
      SDL_RenderPresent(ren);
      SDL_DestroyTexture(tex);
      SDL_FreeSurface(surf);
      TTF_CloseFont(font);
  }
  
  
  
  SDL_DestroyTexture(tex);
  SDL_DestroyRenderer(ren);
  SDL_DestroyWindow(win);
  SDL_Quit();
  return 0;
  }
  </code></pre>
  
  <p>And this is how it looks on screen:
  <img src="https://i.stack.imgur.com/EYEQZ.png" alt="Font drawing location"></p>
  
  <p>How can i fix this problem?</p>
  
  <p>Marco</p>