Skip to content

Commit

Permalink
SharedGraphics: Fix broken rendering of partially clipped GlyphBitmaps.
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Feb 6, 2019
1 parent b3b28b8 commit 39c3b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SharedGraphics/Painter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 39c3b11

Please sign in to comment.