Game Development Community

BUG (minor) in GUIControl.OnRender

by Scott Goodwin · in Torque X 2D · 02/12/2008 (8:56 pm) · 0 replies

Not really critical but since I noticed it, here it is:

#region BUG(SDG)
            // should draw an unfilled rectangle for the border
#if !SDG_APPLY_BUGFIXES
            // if there's a border, draw the border
            if (_style.HasBorder)
                DrawUtil.RectFill(ctrlRect, _style.BorderColor[CustomColor.ColorBase]);
#endif
            #endregion

            #region BUGFIX(SDG)
#if SDG_APPLY_BUGFIXES
            // if there's a border, draw the border
            if (_style.HasBorder)
                DrawUtil.Rect(ctrlRect, _style.BorderColor[CustomColor.ColorBase]);
#endif
            #endregion