diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-08-01 14:33:40 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-08-01 14:33:40 +0100 |
commit | 8945e314c895cadf892bb3fcb27c27ec42c0aa85 (patch) | |
tree | 62dfa1ad6427597ce236ea1f04fc6d0ed3537b4d /framebuffer/font_internal.c | |
parent | ac067e3238a42ecae96f5bdb712e80f754f21044 (diff) | |
download | netsurf-8945e314c895cadf892bb3fcb27c27ec42c0aa85.tar.gz netsurf-8945e314c895cadf892bb3fcb27c27ec42c0aa85.tar.bz2 |
Simplify glyph scaling slightly.
Diffstat (limited to 'framebuffer/font_internal.c')
-rw-r--r-- | framebuffer/font_internal.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/framebuffer/font_internal.c b/framebuffer/font_internal.c index bc17ea595..492e37790 100644 --- a/framebuffer/font_internal.c +++ b/framebuffer/font_internal.c @@ -244,21 +244,9 @@ glyph_scale_2(const uint8_t *glyph_data) } } pos++; - *pos = 0; - for (x = 0; x < 4; x++) { - if (glyph_data[y] & (1 << (7 - x))) { - *pos |= 1 << ((3 - x) * 2); - *pos |= 1 << ((3 - x) * 2 + 1); - } - } + *pos = *(pos - 2); pos++; - *pos = 0; - for (x = 4; x < 8; x++) { - if (glyph_data[y] & (1 << (7 - x))) { - *pos |= 1 << ((7 - x) * 2); - *pos |= 1 << ((7 - x) * 2 + 1); - } - } + *pos = *(pos - 2); pos++; } |