Windowed mode not supported

BlitzPlus Forums/BlitzPlus Programming/Windowed mode not supported

Neo Genesis10(Posted 2003) [#1]
Is there any way of checking whether windowed modes are allowed? GfxModeExists only works based on width, height and depth. It appears that just because a graphics mode is supported normally, doesnt mean it will be supported in a window.

I have recently created a puzzle game which involves moving colorful blocks around but I would rather not have it running fullscreen (partly because the level title is shown in the title bar, but mostly because its neater). Is there a solution to my minor problem?


Floyd(Posted 2003) [#2]
A window is just a rectangular region on your current screen.

I'm not sure how it could fail.


Jim Teeuwen(Posted 2003) [#3]
it can.

some older cards dont support windowed modes. (not all of em anyways).
Dunn o if this is strictly 3D related or more general DX matter tho.


Neo Genesis10(Posted 2003) [#4]
Well I doubt its 3D related. Trouble uses a 2D graphics mode. How old is 'older' cards anyway? If I were to release it as is, is it likely to cause headaches for many users?


Rottbott(Posted 2003) [#5]
There is this:


Windowed3D()
Windowed3D () returns True if a graphics card is capable of rendering 3D graphics modes in a window on the desktop.

Certain graphics cards will only allow specific 3D colour depths (eg. Voodoo3 supports only 16-bit 3D modes and Matrox only supports 16 and 32-bit 3D modes but allows 24-bit 2D modes to be set). If the user's desktop is set to a depth unsupported in 3D, Windowed3D will return False.


But for 2D I think any graphics card should be fine in a window.