# FSlateDrawElement::MakeLines - Broken AA bug (again / still)

**URL:** <https://forums.unrealengine.com/t/fslatedrawelement-makelines-broken-aa-bug-again-still/373609>\
**Category:** Rendering\
**Tags:** unreal-engine, bug-report, editor, slate, CPP, question\
**Created:** [October 17, 2016, 8:02pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-broken-aa-bug-again-still/373609 "2016-10-17T20:02:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CatlinZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CatlinZ](https://forums.unrealengine.com/u/CatlinZ)\
**Post date:** [October 17, 2016, 8:02pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-broken-aa-bug-again-still/373609/1 "2016-10-17T20:02:01Z")

</div>

Awhile ago MugenCity posted that FSlateDrawElements::MakeLines had broken AA ([see this post][1]). The bug report for that (UE-30471) has been marked as fixed and that fix was included in 4.13. While that fix does seem to have fixed the case given in the original post, it doesn’t seem to actually have fixed the problem in the general case.

The problems I’m having with FSlateDrawElements::MakeLines are shown below. The first image shows the broken line (in red) and what the line should look like (in green) separated. The second image shows the two lines overlaid on top of each other, so you can see what the red line _should_ look like. The broken (red) line has a render transform that scales it by 10x in order to make it the same size as the good (green) line.

![111285-separatelines.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/1/14101408f53076d03a2be0925c3a9f5eb72d7a5b.jpeg)

The broken line (red) and the good line (green) overlaid so you can see what the broken line _should_ look like.

![111286-overlaidlines.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/3/cc3ae3fd69d0b503d31c59597e22eb3564191bf8.jpeg)

The two lines were created by just creating two new widget blueprints and overriding the OnPaint functions for each.

The blueprint for the OnPaint function of the broken (red) line is shown below.

 ![111287-brokenblueprint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/7/5e7bb5f0e2dc1bd0638f8c43d09827ede085344b.jpeg)

And the following blueprint is for the OnPaint function of the good (green) line, which is the same, just with the points scaled by 10x.

 ![111288-goodblueprint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/a/3ca78a1440538e17d2901ef30a8f8fc9f54df73e.jpeg)

With the above example, it seems like the problem is definitely related to the distance between the non-transformed points on the line, and all the other times I’ve experienced the problem is when the points on the line have been fairly close together (though certainly not unreasonably close).

Catlin

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [October 18, 2016, 2:13pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-broken-aa-bug-again-still/373609/2 "2016-10-18T14:13:12Z")

</div>

Hello CatlinZ,

After running a few tests, I was able to adjust the test case for this issue and I have reopened the issue for further investigation. I have also provided a link to the public tracker. Please feel free to use the link for future updates.

Link: [Unreal Engine Issues and Bug Tracker (UE-30471)](https://issues.unrealengine.com/issue/UE-30471)

Make it a great day
