1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

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

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;