BMax and monitor rotation.

BlitzMax Forums/BlitzMax Programming/BMax and monitor rotation.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've been playing around with running my game on a monitor that can be rotated between landscape and portrait modes. BMax really doesn't seem to like portrait very much! If the screen is rotated while a BMax app with a graphics context is running (full or windowed) I am greeted with instant blue screen and reboot. If I try to open a graphics context when already in portrait, it will open the window with the proper rotation but the graphics are 90 degrees off.

MaxGUI stuff doesn't seem to like this very much either. I can open MaxIDE and it will survive being rotated but when in portrait mode is extremely sluggish when doing anything with it. This includes resizing the window and moving the splitter. If rotated back to landscape it it back to normal performance.

Anyway, I thought it would be cool to be able to offer screen rotation support for BMax games. Seems like it would be a great feature for vert. shooters as they are a perfect match for 3:4, 9:16, or 10:16 aspect ratios.

Anyone know what might need to be done for this to work? At the very least, it would be nice if it didn't reboot the user's PC if they happen to rotate their screen. =)