LibGfx: Remove unnecessary assertion in Painter::draw_pixel()
This commit is contained in:
parent
eabbe03b97
commit
acb87cd164
Notes:
sideshowbarker
2024-07-19 00:19:03 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/acb87cd164f
1 changed files with 0 additions and 1 deletions
|
@ -1157,7 +1157,6 @@ ALWAYS_INLINE void Painter::fill_scanline_with_draw_op(int y, int x, int width,
|
|||
|
||||
void Painter::draw_pixel(const IntPoint& position, Color color, int thickness)
|
||||
{
|
||||
ASSERT(draw_op() == DrawOp::Copy);
|
||||
if (thickness == 1)
|
||||
return set_pixel_with_draw_op(m_target->scanline(position.y())[position.x()], color);
|
||||
IntRect rect { position.translated(-(thickness / 2), -(thickness / 2)), { thickness, thickness } };
|
||||
|
|
Loading…
Add table
Reference in a new issue