hello,
there is a bug in current revision of the 2.0 branch.
i have two gimp made 32 bit png files with alpha, both are 64 pixels high, one is less than 32 pixel wide, and the other more then 32 pixel.
if i set it up like (untested code ahead):
this->smallImage.LoadFromFile("small.png");
this->smallSprite.SetImage(smallImage);
this->smallSprite.SetOrigin(this->smallImage.GetWidth()*0.5f,this->smallImage.GetHeight()*0.5f);
this->bigImage.LoadFromFile("big.png");
this->bigSprite.SetImage(bigImage);
this->bigSprite.SetOrigin(this->bigImage.GetWidth()*0.5f,this->bigImage.GetHeight()*0.5f);
and then draw it with:
float x=100.0f;
float y=100.0f;
this->bigSprite.SetPosition(x,y);
this->RenderWindow->Draw(this->bigSprite);
x+=this->bigImage.GetWidth();
this->smallSprite.SetPosition(x,y);
this->RenderWindow->Draw(this->smallSprite);
x+=this->smallSprite.GetWidth();
this->bigSprite.SetPosition(x,y);
this->RenderWindow->Draw(this->bigSprite);
then the small sprite is rendered offsetted to the right, so either the SetOrigin() or the GetWidth() seems to fail on images < 32 pixels.
edit: if i just take the image smaller then 32 pixels in with and scale it in gimp to more then 32 pixels, it works.