[MAXGUI] Getting depth of desktop

BlitzMax Forums/BlitzMax Beginners Area/[MAXGUI] Getting depth of desktop

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.

Is there an easy way to do this? I thought for sure the object returned by Desktop() would have a .depth field (and it does have width and height).

Seems I should be able to say:
dskDesktop:TGadget = Desktop()
width = dskDesktop.Width   ' Works!
height = dskDesktop.Height ' Also works!
depth = dskDesktop.Depth   ' Oops!


I know I can use GetGraphicsMode to get info about a specific mode available on the user's system (including depth), but how do I know which index (the first parameter of GetGraphicsMode) is the current one?

Thanks!
Russell