git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove timage list
[fanfix.git]
/
src
/
jexer
/
tterminal
/
Sixel.java
diff --git
a/src/jexer/tterminal/Sixel.java
b/src/jexer/tterminal/Sixel.java
index de3232c6588da3b1e6445a8d031b3804f8ab69eb..6a10b7a892c2312d4dbdcb3b6473edecbe4a28b8 100644
(file)
--- a/
src/jexer/tterminal/Sixel.java
+++ b/
src/jexer/tterminal/Sixel.java
@@
-247,6
+247,12
@@
public class Sixel {
*/
private void addSixel(final char ch) {
int n = ((int) ch - 63);
*/
private void addSixel(final char ch) {
int n = ((int) ch - 63);
+
+ if (DEBUG && (color == null)) {
+ System.err.println("color is null?!");
+ System.err.println(buffer);
+ }
+
int rgb = color.getRGB();
int rep = (repeatCount == -1 ? 1 : repeatCount);
int rgb = color.getRGB();
int rep = (repeatCount == -1 ? 1 : repeatCount);
@@
-311,7
+317,10
@@
public class Sixel {
if (newColor != null) {
color = newColor;
} else {
if (newColor != null) {
color = newColor;
} else {
- System.err.println("COLOR " + idx + " NOT FOUND");
+ if (DEBUG) {
+ System.err.println("COLOR " + idx + " NOT FOUND");
+ }
+ color = Color.BLACK;
}
if (DEBUG) {
}
if (DEBUG) {