Hey all,
I've got 540 images of 128 x 64 pixels. When I try to load the texture in with the following code:
std::string Filepath;
if (Filename.substr(1, 2) == ":\\" || Filename.substr(1, 2) == ":/"){
Filepath = Filename;
} else{
Filepath = Main.AppPath + "../datafiles/GFX/" + Filename;
}
texture = new sf::Texture();
texture->loadFromFile(Filepath);
OriginalWidth = texture->getSize().x;
OriginalHeight = texture->getSize().y;
Width = OriginalWidth;
Height = OriginalHeight;
[/cpp]
The texture->getSize() is 0 x 0. However, if I scale the image up to 128x128 or bigger, it loads just fine. Is this a known issue, and is there a fix?
Thanks in advance,
Anasky