diff options
-rw-r--r-- | libXfont/src/FreeType/ftfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libXfont/src/FreeType/ftfuncs.c b/libXfont/src/FreeType/ftfuncs.c index f14ca6f84..95873fa07 100644 --- a/libXfont/src/FreeType/ftfuncs.c +++ b/libXfont/src/FreeType/ftfuncs.c @@ -1469,7 +1469,7 @@ FreeTypeRasteriseGlyph(unsigned idx, int flags, CharInfoPtr tgp, current_raster[j]|=current_buffer[jj]>>mod_dx0; j++; prev_jj++; jj++; for( ; j<bpr ; j++,prev_jj++,jj++ ){ - current_raster[j]|=current_buffer[prev_jj]<<mod_dx1; + current_raster[j]|=(current_buffer[prev_jj]<<mod_dx1)&0xff; if( bitmap->pitch <= jj ) break; current_raster[j]|=current_buffer[jj]>>mod_dx0; } |