Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CurrentDisplayMode

unsafe DisplayMode Microsoft.Xna.Framework.Graphics.GraphicsAdapter.CurrentDisplayMode
get

Definition at line 190 of file GraphicsAdapter.cs.

191 {
192 get
193 {
194 if (_currentDisplayMode == null)
195 {
196 int num = *(int*)pComPtr + 32;
198 ((delegate* unmanaged[Stdcall, Stdcall]<IntPtr, uint, _D3DDISPLAYMODE*, int>)(int)(*(uint*)num))((nint)pComPtr, adapter, &d3DDISPLAYMODE);
200 if (displayMode._format < SurfaceFormat.Color)
201 {
202 displayMode._format = SurfaceFormat.Color;
203 }
204 }
205 return _currentDisplayMode;
206 }
207 }

Referenced by Microsoft.Xna.Framework.Graphics.GraphicsDevice.ConvertPresentationParametersToNative(), Microsoft.Xna.Framework.Graphics.TextureCube.CopyData< T >(), and Microsoft.Xna.Framework.Graphics.Texture2D.CopyData< T >().