Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    455
  • comments
    639
  • views
    424263

OpenGL Window Framework Beta1.1.1 - The bug fix!

Sign in to follow this  
_the_phantom_

114 views

So, after my 5 hours of coding yesterday I noticed today a slight bug with how the 'resize' event worked.

For better or worse the window has to track its current position so that it could restore its old position when switching from fullscreen to windowed mode. Now this is all well and good but the resize event uses some other code to force the window to resize and update the internal flags. This code however relied on knowing the old window position (as its the code for changing from fullscreen to/from windowed mode) which defaults to zero, so I had to add some code to handle the 'move' event to update the position of the window so that it all worked properly.

The practical upshot is that the user can now trap the 'move' event as well as request and set the window position.

I'll have to make some more examples showing the 'move' and 'resize' events in action.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!