Function BuscarMG(Width%,Height%,Depth%)
Local IterModes
For IterModes=CountGfxModes3D() To 1 Step -1 ;It's more likely that searches would prefer higher - end resolutions.
If (GfxModeWidth(IterModes)=Width)*(GfxModeHeight(IterModes)=Height)*(GfxModeDepth(IterModes)=Depth) Then Return IterModes
If (GfxModeWidth(IterModes)<Width) Then Return False
Next
Return False
End Function
Hello, this function returns the position of the selected graphic. (It was taken here in the community).
In such a case to determine the position of 600 800 32 mode, I return the number 11, but if I put 800 600 16, I returned a 0, it can not be wrong, because my computer supports 16 24 and 32 deep, I hope the author of this feature can help me.
A greeting.
Last edited 2011
|