diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-11-20 03:10:34 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-20 12:56:35 +0100 |
commit | 63078ba7fce24438d19e7d9b4bae2197cc100237 (patch) | |
tree | 5d1f40d2044dca959ba33bc01397477d821d0081 /Userland/Applications/FontEditor/GlyphEditorWidget.cpp | |
parent | 8d80d1346dc4d8dca9d8045071c8bacaafe78f06 (diff) | |
download | serenity-63078ba7fce24438d19e7d9b4bae2197cc100237.zip |
FontEditor: Set all pixels when pasting a glyph
For an empty glyph (all pixels initially clear), this makes no
difference. However, if the glyph for the selected code point already
contains some set pixels, pasting used to "add" the set pixels, instead
of overwriting.
Diffstat (limited to 'Userland/Applications/FontEditor/GlyphEditorWidget.cpp')
-rw-r--r-- | Userland/Applications/FontEditor/GlyphEditorWidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp index d33f606e37..1ef56ffcea 100644 --- a/Userland/Applications/FontEditor/GlyphEditorWidget.cpp +++ b/Userland/Applications/FontEditor/GlyphEditorWidget.cpp @@ -107,8 +107,7 @@ void GlyphEditorWidget::paste_glyph() auto bitmap = font().raw_glyph(m_glyph).glyph_bitmap(); for (int x = 0; x < min(bitmap.width(), buffer_width.value()); x++) { for (int y = 0; y < min(bitmap.height(), buffer_height.value()); y++) { - if (bits[x][y]) - bitmap.set_bit_at(x, y, bits[x][y]); + bitmap.set_bit_at(x, y, bits[x][y]); } } |