mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-17 08:17:30 +03:00
SharedGraphics: Fix broken rendering of partially clipped GlyphBitmaps.
This commit is contained in:
parent
b3b28b8b15
commit
39c3b117c9
Notes:
sideshowbarker
2024-07-19 15:51:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/39c3b117c99
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user