Jump to content
  • Advertisement
Sign in to follow this  
HexDump

SDL question

This topic is 4836 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

Hi, I´m having trouble making a sdl window to refresh. My app creates a sdl window (where I render) and a win dialog. While the dialog is active I render to the screen but the window seems not to refresh with the new data. As soon as I close the dialog and window gets focus again the image appears (the sdl rendering window refreshes), how can I solve this?. Thanks in advance, HexDump.

Share this post


Link to post
Share on other sites
Advertisement
While you are in the "dialog box", the message loop is redirected to the WinProc of the dialog, so no action is being taken in relation to your main window. Now how to do that, I'm not sure, but it could involve manually calling an update on your window, or something like that.

Share this post


Link to post
Share on other sites
No, it is not a modal dialog. I can shut up the app when displaying the dialog pressing the SDL render window X button.

Thanks in advance,
HexDump.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!