Load/Save As Requester for Max2D

BlitzMax Forums/BlitzMax Programming/Load/Save As Requester for Max2D

Ah, I remember having issue with that (not with Bmax though): in a fullscreen app, the front and back buffer are flipped every frame. The Windows file requester will only show IF the front buffer (also called the Primary buffer) is the visible one. If the backbuffer is the visible one, you get "stuck" with an invisible file requester.

It would be an interesting experiment to check if the same behavior occurs in Blitz, and compare DirectX vs OpenGL behavior too. If it does, then you could simply count the number of flip called so your program would "know" if the front or back buffer is currently visible and perform an additonnal flip() in that case.

I also remember that there is a call in DirectX to check if the primary buffer is currently visible.

BTW it may apply only to Windows: Mac or Linux openGL may or may not allow a file requester to show on top of a fullscreen 3D app..