Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

GMMigge

My image disappears!

This topic is 5824 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just wonder why my image disappears. I was playing around with bitmaps and it works fine...as long as you ARE doing something else. When I leave my ''main''-loop empty (i.e. it doesn''t update any graphics), the bitmap I displayed in my init() disappears. It''s like if the graphics card doesn''t have anything to do, it goes to sleep. Why is this? Is there like a function ''Do_nothing_but_do_something''?

Share this post


Link to post
Share on other sites
Advertisement
hmmm... I need to see the code, but it might be that you''re clearing the surface right after you draw it, try moving the drawing code to the main loop function.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!