Has anyone looked into ways to get the display capabilities from Windows or Direct X?
I'm talking about, say maximum color depth, maximum X and Y resolution, display aspect ratio?
If it was possible to have this information, the it would be easy to offer screen resolutions with proper aspect ratio to the user.
If anyone looked into this, I'm interested on the findings.
So far, I found this:
http://msdn2.microsoft.com/en-us/library/ms793908.aspx
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/ddraw7/directdraw7/ddref_76t3.asp
Can't seem to find a way to use this in Blitz3D as it requires to use ddraw.lib, which I don't think it is possible to use directly from a Blitz3D app.
Cheers.
I'm talking about, say maximum color depth, maximum X and Y resolution, display aspect ratio?
If it was possible to have this information, the it would be easy to offer screen resolutions with proper aspect ratio to the user.
If anyone looked into this, I'm interested on the findings.
So far, I found this:
http://msdn2.microsoft.com/en-us/library/ms793908.aspx
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/ddraw7/directdraw7/ddref_76t3.asp
DDVIDEOPORTCAPS
The DDVIDEOPORTCAPS structure describes the capabilities and alignment restrictions of a hardware video port.
typedef struct _DDVIDEOPORTCAPS {
DWORD dwSize;
DWORD dwFlags;
DWORD dwMaxWidth;
DWORD dwMaxVBIWidth;
DWORD dwMaxHeight;
DWORD dwVideoPortID;
DWORD dwCaps;
DWORD dwFX;
DWORD dwNumAutoFlipSurfaces;
DWORD dwAlignVideoPortBoundary;
DWORD dwAlignVideoPortPrescaleWidth;
DWORD dwAlignVideoPortCropBoundary;
DWORD dwAlignVideoPortCropWidth;
DWORD dwPreshrinkXStep;
DWORD dwPreshrinkYStep;
DWORD dwNumVBIAutoFlipSurfaces;
DWORD dwNumPreferredAutoflip;
WORD wNumFilterTapsX;
WORD wNumFilterTapsY;
} DDVIDEOPORTCAPS;
The DDVIDEOPORTCAPS structure describes the capabilities and alignment restrictions of a hardware video port.
typedef struct _DDVIDEOPORTCAPS {
DWORD dwSize;
DWORD dwFlags;
DWORD dwMaxWidth;
DWORD dwMaxVBIWidth;
DWORD dwMaxHeight;
DWORD dwVideoPortID;
DWORD dwCaps;
DWORD dwFX;
DWORD dwNumAutoFlipSurfaces;
DWORD dwAlignVideoPortBoundary;
DWORD dwAlignVideoPortPrescaleWidth;
DWORD dwAlignVideoPortCropBoundary;
DWORD dwAlignVideoPortCropWidth;
DWORD dwPreshrinkXStep;
DWORD dwPreshrinkYStep;
DWORD dwNumVBIAutoFlipSurfaces;
DWORD dwNumPreferredAutoflip;
WORD wNumFilterTapsX;
WORD wNumFilterTapsY;
} DDVIDEOPORTCAPS;
Can't seem to find a way to use this in Blitz3D as it requires to use ddraw.lib, which I don't think it is possible to use directly from a Blitz3D app.
Cheers.