From c80b2cf78295bf8c37cf7f3d0a7209aa84008f62 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Thu, 18 Jan 2024 19:09:55 -0500 Subject: [PATCH] LibGfx/ExifOrientedBitmap: Use `scanline` instead of `set_pixel()` The former has the advantage to be available in CMYKBitmap too. No behavior change. --- Userland/Libraries/LibGfx/ImageFormats/ExifOrientedBitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/ExifOrientedBitmap.h b/Userland/Libraries/LibGfx/ImageFormats/ExifOrientedBitmap.h index 9b21956ea1..c4d5f8ed93 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/ExifOrientedBitmap.h +++ b/Userland/Libraries/LibGfx/ImageFormats/ExifOrientedBitmap.h @@ -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()