diff --git a/fonts/default.zmfnt b/fonts/default.zmfnt index aea4980cb..e74a798a0 100644 Binary files a/fonts/default.zmfnt and b/fonts/default.zmfnt differ diff --git a/src/zm_image.cpp b/src/zm_image.cpp index 0a8312b93..b6926c1ff 100644 --- a/src/zm_image.cpp +++ b/src/zm_image.cpp @@ -2012,7 +2012,7 @@ void Image::Annotate( if ( !bg_trans ) memset(temp_ptr, bg_bw_col, char_width); while ( f != 0 ) { 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; f ^= t; } @@ -2040,7 +2040,7 @@ void Image::Annotate( } while ( f != 0 ) { 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); RED_PTR_RGBA(colour_ptr) = fg_r_col; GREEN_PTR_RGBA(colour_ptr) = fg_g_col; @@ -2068,7 +2068,7 @@ void Image::Annotate( } while ( f != 0 ) { 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; f ^= t; }