0

For some odd reason my SFML program won't render anything until I mouse over it, or press a key or do anything that qualifies as an event.

How do I fix this?

1 Answer 1

5

When you mouse over, this causes a message to be sent to the application. So probably you have your main loop written incorrectly, so that it won't render until a message is received. But this is a random guess, you should consider always posting your code together with your question.

1
  • This was indeed the problem. I had my drawing stuff in the event loop; so therefore it was only drawing when an event happened. Thanks though.
    – Lemmons
    Jan 3, 2011 at 3:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.