Why?

Started by 1aam2am1, 10 June 2015, 17:00:02

1aam2am1

This is displayed on a computer at a friend.

And this at my

Why he has got a break on sliders?

texus

This has been reported a few times, but my suspicion on what the problem is has never been confirmed. I'm still assuming that this is a problem with the graphics driver, you should ask your friend to update it.

To be certain that it has nothing to do with tgui you can try out a program with just sfml and use code like this:
Code (cpp) Select
// Load a small to medium sized texture, set it to repeat
sf::Texture texture;
texture.loadFromFile("Filename.jpg");
texture.setRepeated(true);

// Create the sprite and give it a texture rect that is several times larger than the size of the texture
sf::Sprite sprite;
sprite.setTexture(texture);
sprite.setTextureRect({0, 0, 800, 600});

// Draw the sprite and see if it displays without gaps between the repeated texture
window.draw(sprite);


If that code fails on your friends computer too then I will finally be certain that it is completely unrelated to tgui.

1aam2am1

That not work. This is a error of SFML. My friend hasn't got acceleration hardware of opengl. That is the anser.
Thanks.