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

OpenGL Window Framework Beta1.1.1 - The bug fix!

Sign in to follow this  


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  


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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!