Mercurial > octave
diff libinterp/corefcn/ft-text-renderer.cc @ 26995:ab5bfee22d18
maint: Strip trailing whitespace from source files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 27 Mar 2019 23:32:07 +0000 |
parents | 0adb232f93b9 |
children | 84ff9953faa1 |
line wrap: on
line diff
--- a/libinterp/corefcn/ft-text-renderer.cc Wed Mar 27 23:26:27 2019 +0000 +++ b/libinterp/corefcn/ft-text-renderer.cc Wed Mar 27 23:32:07 2019 +0000 @@ -539,7 +539,7 @@ // Used for computing the distance between lines. double m_max_fontsize; - + // Anti-aliasing. bool m_antialias; @@ -715,10 +715,10 @@ int pitch = std::abs (glyph->bitmap.pitch); unsigned char *row = &glyph->bitmap.buffer[pitch * y]; char cvalue = row[x >> 3]; - + return ((cvalue & (128 >> (x & 7))) != 0); } - + FT_UInt ft_text_renderer::process_character (FT_ULong code, FT_UInt previous) { @@ -798,7 +798,7 @@ = (m_antialias ? bitmap.buffer[r*bitmap.width+c] : (is_opaque (face->glyph, c, r) ? 255 : 0)); - + if (x0+c < 0 || x0+c >= pixels.dim2 () || y0-r < 0 || y0-r >= pixels.dim3 ()) {