Game Development Community

BUG in GUICanvas OnRegister

by Scott Goodwin · in Torque X 2D · 01/30/2008 (2:54 pm) · 0 replies

BUG in GUICanvas OnRegister

public override bool OnRegister()
{
_bounds.Width = GFX.GFXDevice.Instance.CurrentVideoMode.BackbufferHeight;
_bounds.Height = GFX.GFXDevice.Instance.CurrentVideoMode.BackbufferWidth;

return base.OnRegister();
}

Height and Width mixed up. Should be:

public override bool OnRegister()
{
_bounds.Width = GFX.GFXDevice.Instance.CurrentVideoMode.BackbufferWidth;
_bounds.Height = GFX.GFXDevice.Instance.CurrentVideoMode.BackbufferHeight;

return base.OnRegister();
}