So then the Sprite class must have a member thats a SDL_Surface, is the SDL_Surface->w still right? Is the Sprites dimensions ever right?
Ok, just to clarify. I set two integers in Image, h and w, from the height and width from the SDL_Surface *. At that point the values are correct.
But then in the Sprite class I call two methods in Image that returns the height and width from Image. And it is from that point that the values gets all wrong.
So yes. The values are at one point right.
*Edit*
I still have not figured out why it did not work as it should but I have found a workaround. Instead of sending the height and width from Image to Sprite I retrieve the surface from Image
and then in sprite does "surface -> w;" and "surface -> h;"
And that works.