< prev index next >

src/java.desktop/share/classes/sun/java2d/pipe/TextRenderer.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -57,11 +57,11 @@
                                         bounds[3] - bounds[1]);
             Shape s = sg2d.untransformShape(r);
             ctx = outpipe.startSequence(sg2d, s, r, bounds);
             for (int i = 0; i < num; i++) {
                 gl.setGlyphIndex(i);
-                int metrics[] = gl.getMetrics();
+                int[] metrics = gl.getMetrics();
                 int gx1 = metrics[0];
                 int gy1 = metrics[1];
                 int w = metrics[2];
                 int gx2 = gx1 + w;
                 int gy2 = gy1 + metrics[3];

@@ -77,11 +77,11 @@
                 if (gx2 > cx2) gx2 = cx2;
                 if (gy2 > cy2) gy2 = cy2;
                 if (gx2 > gx1 && gy2 > gy1 &&
                     outpipe.needTile(ctx, gx1, gy1, gx2 - gx1, gy2 - gy1))
                 {
-                    byte alpha[] = gl.getGrayBits();
+                    byte[] alpha = gl.getGrayBits();
                     outpipe.renderPathTile(ctx, alpha, off, w,
                                            gx1, gy1, gx2 - gx1, gy2 - gy1);
                 } else {
                     outpipe.skipTile(ctx, gx1, gy1);
                 }
< prev index next >