commit
fc6c8ac33d
Binary file not shown.
|
@ -2012,7 +2012,7 @@ void Image::Annotate(
|
||||||
if ( !bg_trans ) memset(temp_ptr, bg_bw_col, char_width);
|
if ( !bg_trans ) memset(temp_ptr, bg_bw_col, char_width);
|
||||||
while ( f != 0 ) {
|
while ( f != 0 ) {
|
||||||
uint64_t t = f & -f;
|
uint64_t t = f & -f;
|
||||||
int idx = char_width - __builtin_ctzll(f>>2);
|
int idx = char_width - __builtin_ctzll(f);
|
||||||
*(temp_ptr + idx) = fg_bw_col;
|
*(temp_ptr + idx) = fg_bw_col;
|
||||||
f ^= t;
|
f ^= t;
|
||||||
}
|
}
|
||||||
|
@ -2040,7 +2040,7 @@ void Image::Annotate(
|
||||||
}
|
}
|
||||||
while ( f != 0 ) {
|
while ( f != 0 ) {
|
||||||
uint64_t t = f & -f;
|
uint64_t t = f & -f;
|
||||||
int idx = char_width - __builtin_ctzll(f >> 2);
|
int idx = char_width - __builtin_ctzll(f);
|
||||||
unsigned char *colour_ptr = temp_ptr + (idx*3);
|
unsigned char *colour_ptr = temp_ptr + (idx*3);
|
||||||
RED_PTR_RGBA(colour_ptr) = fg_r_col;
|
RED_PTR_RGBA(colour_ptr) = fg_r_col;
|
||||||
GREEN_PTR_RGBA(colour_ptr) = fg_g_col;
|
GREEN_PTR_RGBA(colour_ptr) = fg_g_col;
|
||||||
|
@ -2068,7 +2068,7 @@ void Image::Annotate(
|
||||||
}
|
}
|
||||||
while ( f != 0 ) {
|
while ( f != 0 ) {
|
||||||
uint64_t t = f & -f;
|
uint64_t t = f & -f;
|
||||||
int idx = char_width - __builtin_ctzll(f >> 2);
|
int idx = char_width - __builtin_ctzll(f);
|
||||||
*(temp_ptr + idx) = fg_rgb_col;
|
*(temp_ptr + idx) = fg_rgb_col;
|
||||||
f ^= t;
|
f ^= t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue