RFR: 8247564: Lanai - SwingSet2 - Motif L&F - UI controls border is incorrectly drawn with uiScale=1.0

Ajit Ghaisas aghaisas at openjdk.java.net
Thu Jul 30 19:22:07 UTC 2020


On Tue, 28 Jul 2020 12:15:17 GMT, Denis Konoplev <github.com+14975482+dekonoplyov at openjdk.org> wrote:

> DrawLine implementation same as in OGLRenderer.c
> It fixes JList borders and helps with lines inside radio buttons.

src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderer.m line 91:

> 90:
> 91:         struct Vertex v1 = {{fx1 + 0.2f, fy}};
> 92:         struct Vertex v2 = {{fx2 + 1.2f, fy}};

We can avoid creation of v1 and v2 by directly assigning to verts[0] and verts[1].
8250778 changes can be referred.

-------------

PR: https://git.openjdk.java.net/lanai/pull/68


More information about the lanai-dev mailing list