kolibrios-fun/programs/cmm/iconedit/tools/fill.h
Kirill Lipatov (Leency) 9115f97464 IconEdit 0.48: decrease redraw, improve file save, fix pencil undo, code clean
git-svn-id: svn://kolibrios.org@7257 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-04-24 15:14:08 +00:00

11 lines
270 B
C

void FillTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) {
if (canvas.hovered()) && (mouse.up)
{
image.fill(mouseY-canvas.y/zoom.value,
mouseX-canvas.x/zoom.value, tool_color);
actionsHistory.saveCurrentState();
DrawCanvas();
}
}