SharedGraphics: Fix broken rendering of partially clipped GlyphBitmaps.

This commit is contained in:
Andreas Kling 2019-02-06 10:39:24 +01:00
parent b3b28b8b15
commit 39c3b117c9
Notes: sideshowbarker 2024-07-19 15:51:10 +09:00

View File

@ -226,7 +226,7 @@ void Painter::draw_bitmap(const Point& p, const GlyphBitmap& bitmap, Color color
for (int row = first_row; row <= last_row; ++row) {
for (int j = 0; j <= (last_column - first_column); ++j) {
if (bitmap.bit_at(j, row))
if (bitmap.bit_at(j + first_column, row))
dst[j] = color.value();
}
dst += dst_skip;