Minor
This commit is contained in:
parent
617f4ac46f
commit
8caf5dcd66
|
@ -251,8 +251,6 @@ block_best (const biimage_t &bi, unsigned int *score, bool *inverse)
|
|||
col_sum_i[i] += col_sum_i[i - 1];
|
||||
}
|
||||
|
||||
*score = (unsigned int) -1;
|
||||
*inverse = false;
|
||||
const char *best_c = " ";
|
||||
|
||||
/* Maybe empty is better! */
|
||||
|
@ -301,7 +299,6 @@ block_best (const biimage_t &bi, unsigned int *score, bool *inverse)
|
|||
}
|
||||
|
||||
/* Find best left line */
|
||||
/* Disable this as it looks ugly because of line height issues. */
|
||||
if (1) {
|
||||
unsigned int best_s = (unsigned int) -1;
|
||||
bool best_inv = false;
|
||||
|
@ -333,7 +330,8 @@ block_best (const biimage_t &bi, unsigned int *score, bool *inverse)
|
|||
}
|
||||
}
|
||||
|
||||
/* Quadrant? */
|
||||
/* Find best quadrant */
|
||||
if (1) {
|
||||
unsigned int q = 0;
|
||||
unsigned int qs = 0;
|
||||
for (unsigned int i = 0; i < 2; i++)
|
||||
|
@ -364,6 +362,7 @@ block_best (const biimage_t &bi, unsigned int *score, bool *inverse)
|
|||
best_c = c;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return best_c;
|
||||
}
|
||||
|
@ -394,7 +393,7 @@ ansi_print_image_rgb24 (const uint32_t *data,
|
|||
} else {
|
||||
/* Figure out the closest character to the biimage */
|
||||
unsigned int score = (unsigned int) -1;
|
||||
bool inverse;
|
||||
bool inverse = false;
|
||||
const char *c = block_best (bi, &score, &inverse);
|
||||
if (inverse) {
|
||||
if (last_bg != bi.fg || last_fg != bi.bg) {
|
||||
|
|
Loading…
Reference in New Issue