This is mostly a duplicate of SDL2 version with a few changes: SDL_GetRenderScale -> SDL_RenderGetScale SDL_ScaleModeLinear -> SDL_SCALEMODE_LINEAR