/*
System.err.println("drawGlyph(): " + xPixel + " " + yPixel +
" " + cell);
- */
+ */
BufferedImage image = null;
if (cell.isBlink() && !cursorBlinkVisible) {
if (bounds != null) {
// Only update what is in the bounds
xCellMin = textColumn(bounds.x);
- xCellMax = textColumn(bounds.x + bounds.width);
+ xCellMax = textColumn(bounds.x + bounds.width) + 1;
if (xCellMax > width) {
xCellMax = width;
}
xCellMin = 0;
}
yCellMin = textRow(bounds.y);
- yCellMax = textRow(bounds.y + bounds.height);
+ yCellMax = textRow(bounds.y + bounds.height) + 1;
if (yCellMax > height) {
yCellMax = height;
}
/*
System.err.printf("bounds %s X %d %d Y %d %d\n",
bounds, xCellMin, xCellMax, yCellMin, yCellMax);
- */
+ */
for (int y = yCellMin; y < yCellMax; y++) {
for (int x = xCellMin; x < xCellMax; x++) {
// 00-17, 19, 1C-1F, 20-7E --> put
if (ch <= 0x17) {
- sixelParseBuffer.append(ch);
+ sixelParseBuffer.append((char) ch);
return;
}
if (ch == 0x19) {
- sixelParseBuffer.append(ch);
+ sixelParseBuffer.append((char) ch);
return;
}
if ((ch >= 0x1C) && (ch <= 0x1F)) {
- sixelParseBuffer.append(ch);
+ sixelParseBuffer.append((char) ch);
return;
}
if ((ch >= 0x20) && (ch <= 0x7E)) {
- sixelParseBuffer.append(ch);
+ sixelParseBuffer.append((char) ch);
return;
}