SFML community forums

Help => Graphics => Topic started by: solgar on February 01, 2010, 08:24:36 pm

Title: Issue with creating sf::Image
Post by: solgar on February 01, 2010, 08:24:36 pm
Following code: http://ideone.com/IqTCnnpr produces following error:
Quote
Failed to create image, its internal size is too high (319x94)

First image is loaded and drawn perfectly. Loading second prints this error and is not drawn at all. This code http://ideone.com/wqYJVndB works perfectly. In second listing window is created before images. Issue occurs on Linux. On Windows there is no difference between those two code listings. My OS is Linux Mint 8 and SFML version is 1.5. Quite strange... is this SFML issue?
Title: Issue with creating sf::Image
Post by: Laurent on February 01, 2010, 08:36:17 pm
Quote
is this SFML issue?

Probably. Which version of SFML are you using? Have you tried the current SVN revision (future 1.6)?
Title: Re: Issue with creating sf::Image
Post by: solgar on February 01, 2010, 08:39:13 pm
Quote from: "solgar"
My OS is Linux Mint 8 and SFML version is 1.5


Tried only with 1.5 downloaded from site download section.
Title: Issue with creating sf::Image
Post by: Laurent on February 02, 2010, 10:03:50 am
Any message on the standard error output?

What about your graphics drivers, are they up-to-date?

You may also try the latest sources from SVN (you'll have to recompile SFML).
Title: Issue with creating sf::Image
Post by: solgar on February 02, 2010, 10:35:11 am
Quote from: "Laurent"
Any message on the standard error output?
Only this one qouted above.

Quote from: "Laurent"
What about your graphics drivers, are they up-to-date?
Nope.

Quote from: "Laurent"
You may also try the latest sources from SVN (you'll have to recompile SFML).
But if you could try these code sample on your Linux I would be grateful :). I was competing in 2h game compo and I was using SFML for graphics and input. After 1 hour I tried to compile what i wrote and see the results but i got this error and it took me another hour to figure out what causes this error. Sooo i didnt submit my work :(. And I would really like to know if this was SFML fault or my OS or some other sinister force ;).