SDL GetWindowSize Use this function to get the size of a window's client area. Favorite site SDL_GetWindowSize