LibGfx: Remove unnecessary assertion in Painter::draw_pixel()

This commit is contained in:
Andreas Kling 2020-12-31 11:57:25 +01:00
parent eabbe03b97
commit acb87cd164
Notes: sideshowbarker 2024-07-19 00:19:03 +09:00

View file

@ -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 } };