terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ SetDisplayMode()

static void Terraria.Main.SetDisplayMode ( int width,
int height,
bool fullscreen )
inlinestatic

Definition at line 18242 of file Main.cs.

18243 {
18244 int num = 1;
18245 if (num == 0)
18246 {
18247 }
18248 if (num == 0)
18249 {
18250 }
18251 if (!true)
18252 {
18253 }
18255 Viewport viewport = graphicsDevice.Viewport;
18262 int screenWidth = Main.screenWidth;
18263 int screenHeight = Main.screenHeight;
18264 Main.mapTime = 0;
18265 Main.renderNow = true;
18266 Main.screenWidth = width;
18267 Main.screenHeight = height;
18268 int screenWidth2 = Main.screenWidth;
18269 int screenHeight2 = Main.screenHeight;
18271 Main.FixUIScale();
18272 if (height != 0)
18273 {
18274 int screenWidth3 = Main.screenWidth;
18275 int screenHeight3 = Main.screenHeight;
18276 }
18277 int screenWidth4 = Main.screenWidth;
18278 int screenHeight4 = Main.screenHeight;
18280 Lighting.Initialize(true);
18281 }
class f__AnonymousType0<< Count > j__TPar
GraphicsDevice graphicsDevice
Definition Game.cs:405
static void CacheOriginalScreenDimensions()
static int screenHeight
Definition Main.cs:2015
static int screenWidth
Definition Main.cs:2001
Viewport(int x, int y, int width, int height)
Definition Viewport.cs:229

References Microsoft.Xna.Framework.Graphics.Viewport.Viewport(), Terraria.GameInput.PlayerInput.CacheOriginalScreenDimensions(), Terraria.Main.FixUIScale(), Microsoft.Xna.Framework.Game.graphicsDevice, Terraria.Lighting.Initialize(), j__TPar, Terraria.Main.screenHeight, Terraria.Main.screenWidth, and Microsoft.Xna.Framework.Graphics.GraphicsDevice.Viewport.

Referenced by Terraria.Main.OpenLegacySettings().