RFR: 8244402: Lanai - Motif L&F - Non selected Radio button is barely rendered on non-retina display
Ajit Ghaisas
aghaisas at openjdk.java.net
Thu Jul 30 19:25:55 UTC 2020
On Tue, 28 Jul 2020 12:10:58 GMT, Denis Konoplev <github.com+14975482+dekonoplyov at openjdk.org> wrote:
> Implemented DrawPixel
Changes requested by aghaisas (Committer).
src/java.desktop/macosx/native/libawt_lwawt/java2d/metal/MTLRenderer.m line 105:
> 104: float fy = (float)y + 0.5f;
> 105: struct Vertex vert[1] = {{{fx, fy}}};
> 106: [mtlEncoder setVertexBytes:vert length:sizeof(vert) atIndex:MeshVertexBuffer];
Why have an array of size 1?
We can have simple struct variable.
-------------
PR: https://git.openjdk.java.net/lanai/pull/67
More information about the lanai-dev
mailing list