mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 03:40:20 -06:00
use sixelColors.size()
This commit is contained in:
parent
e9314585cc
commit
3ac3c2bd9d
1 changed files with 2 additions and 1 deletions
|
@ -1873,10 +1873,11 @@ public class HQSixelEncoder implements SixelEncoder {
|
|||
// Render the entire row of cells.
|
||||
int width = bitmap.getWidth();
|
||||
|
||||
int colorsN = palette.sixelColors.size();
|
||||
for (int currentRow = 0; currentRow < fullHeight; currentRow += 6) {
|
||||
Palette.SixelRow sixelRow = palette.sixelRows[currentRow / 6];
|
||||
|
||||
for (int i = 0; i < paletteSize; i++) {
|
||||
for (int i = 0; i < colorsN; i++) {
|
||||
if (!sixelRow.colors.get(i)) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue