From 39c3b117c99c63ee3265fa4eda5deeb1c77608d8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 6 Feb 2019 10:39:24 +0100 Subject: [PATCH] SharedGraphics: Fix broken rendering of partially clipped GlyphBitmaps. --- SharedGraphics/Painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharedGraphics/Painter.cpp b/SharedGraphics/Painter.cpp index 31e2728194..486352a958 100644 --- a/SharedGraphics/Painter.cpp +++ b/SharedGraphics/Painter.cpp @@ -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;