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:
Lucas CHOLLET 2024-01-18 19:09:55 -05:00 committed by Andrew Kaster
parent 8229a19081
commit c80b2cf782
Notes: sideshowbarker 2024-07-17 03:30:41 +09:00

View file

@ -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()