RFR: 8244402: Lanai - Motif L&F - Non selected Radio button is barely rendered on non-retina display [v2]
Denis Konoplev
github.com+14975482+dekonoplyov at openjdk.java.net
Fri Jul 31 12:01:10 UTC 2020
On Thu, 30 Jul 2020 19:23:00 GMT, Ajit Ghaisas <aghaisas at openjdk.org> wrote:
>> Denis Konoplev has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Replace one element array with struct
>
> 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.
Done!
-------------
PR: https://git.openjdk.java.net/lanai/pull/67
More information about the lanai-dev
mailing list