#49 cell attributes to int
[fanfix.git] / src / jexer / backend / GlyphMaker.java
index 0c798b1d7e1fdd48eb7d0df0b2f10f45326c5231..08cbee8ca10a91d48900e182d6b1fd25d9946c39 100644 (file)
@@ -201,8 +201,7 @@ class GlyphMakerFont {
         Graphics2D gr2 = image.createGraphics();
         gr2.setFont(font);
 
-        Cell cellColor = new Cell();
-        cellColor.setTo(cell);
+        Cell cellColor = new Cell(cell);
 
         // Check for reverse
         if (cell.isReverse()) {
@@ -231,8 +230,7 @@ class GlyphMakerFont {
         gr2.dispose();
 
         // We need a new key that will not be mutated by invertCell().
-        Cell key = new Cell();
-        key.setTo(cell);
+        Cell key = new Cell(cell);
         if (cell.isBlink() && !blinkVisible) {
             glyphCacheBlink.put(key, image);
         } else {