mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +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
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…
Add table
Add a link
Reference in a new issue