mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
LibGfx/ExifOrientedBitmap: Use scanline
instead of set_pixel()
The former has the advantage to be available in CMYKBitmap too. No behavior change.
This commit is contained in:
parent
8229a19081
commit
c80b2cf782
Notes:
sideshowbarker
2024-07-17 03:30:41 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/c80b2cf782 Pull-request: https://github.com/SerenityOS/serenity/pull/22856 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/nico ✅
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ public:
|
|||
void set_pixel(u32 x, u32 y, Color color)
|
||||
{
|
||||
auto const new_position = oriented_position(IntPoint(x, y));
|
||||
m_bitmap->set_pixel(new_position, color);
|
||||
m_bitmap->scanline(new_position.y())[new_position.x()] = color.value();
|
||||
}
|
||||
|
||||
NonnullRefPtr<Bitmap>& bitmap()
|
||||
|
|
Loading…
Reference in a new issue