I have a sprite sheet that's 155 x 66 pixels that I use for my game's UI. I've seen many topics regarding rendering sprite sheets by using the number of pixels and dividing that by the number of sprites to figure out where the render the sprite from. The problem with this is that the buttons on the sprite sheet cannot perfectly aligned so I'm left with differently sized sprites on the sprite sheet.
How do I render an irregular sprite sheet in SDL2?