PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

What is the procedure of posting working code for approval?

I've implemented working analog of Display::setDisplayMode(), as Display::setDisplayMode() don't work after I decommented it.

I've done it in Application class. In Display::closeDisplay() I've destructed all that was created earlier ( not only backBufferHardware but also surface and blitter ). And in this method simply call openDisplay() and closeDisplay() of Application class. Also noticed strange behaviour of GXCloseDisplay() which fires WM_ACTIVATE causing app to minimize, so added boolean flag to not "listen" to this minimizing WM_ACTIVATE while reinit.

On my two devices (one with frame buffer other with GAPI ) it works fine, not only changing mode, I've also tried to change method of output from GAPI to Frame Buffer on the fly and all was OK too, so I think it can be added to library for testing of other people on other devices. Tomorrow will be able to test it on WM5/DirectDraw device.

What is the procedure of posting working code for approval?

Best regards, Nomad.