I don’t know what the problem is, but, one way for the above x,y position of the rectangle containing your game to happen is to apply the offset twice.
(xoff==2*a, yoff==2*0==0)
I find curious in the screen below there’s a little square icon at top left.
SDL_SetRenderTarget(renderer,texture);
now you draw …
SDL_SetRenderTarget(renderer,NULL);
SDL_RenderCopy(renderer,texture,NULL,NULL);
SDL_RenderPresent(SDLRenderer);
Thank you for the fast response. I found that the problem was with the camera positioning. The camera viewport width is initialized with the size of the first level and the first level size is 1920X1080, so the other 300 pixels are left blank. Because of this on the left corner of the second picture appears a box which is on a right place.
Sizes of the renderer and the window were fine. Also I changed display mode.w and mode.h.