git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#37 reduce calls to resizeToScreen
[nikiroo-utils.git]
/
src
/
jexer
/
backend
/
GlyphMaker.java
diff --git
a/src/jexer/backend/GlyphMaker.java
b/src/jexer/backend/GlyphMaker.java
index 0c798b1d7e1fdd48eb7d0df0b2f10f45326c5231..08cbee8ca10a91d48900e182d6b1fd25d9946c39 100644
(file)
--- a/
src/jexer/backend/GlyphMaker.java
+++ b/
src/jexer/backend/GlyphMaker.java
@@
-201,8
+201,7
@@
class GlyphMakerFont {
Graphics2D gr2 = image.createGraphics();
gr2.setFont(font);
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()) {
// 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().
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 {
if (cell.isBlink() && !blinkVisible) {
glyphCacheBlink.put(key, image);
} else {