Fix blending of rendered text into semi-transparent pixels (#4692)

This commit is contained in:
David Capello 2024-10-10 16:48:51 -03:00
parent 8fd882d90b
commit e900f2dfd9

View File

@ -464,13 +464,10 @@ EditorState::LeaveAction WritingTextState::onLeaveState(Editor* editor, EditorSt
expand.validateDestCanvas(
gfx::Region(extraCel->cel()->bounds()));
doc::blend_image(
expand.getDestCanvas(),
expand.getDestCanvas()->copy(
extraCel->image(),
gfx::Clip(extraCel->cel()->position(),
extraCel->image()->bounds()),
site.palette(),
255, doc::BlendMode::NORMAL);
extraCel->image()->bounds()));
expand.commit();
tx.commit();