mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
[MSPAINT] Make selection window-less (#5208)
- Delete selection.cpp and selection.h and selectionWindow. - Extend ColorKeyedMaskBlt function. - Implement selection resizing. CORE-18867
This commit is contained in:
parent
3f5bcf5775
commit
aac89519ec
23 changed files with 702 additions and 829 deletions
|
@ -150,14 +150,25 @@ LRESULT CCanvasWindow::OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BO
|
|||
|
||||
if (hit == HIT_NONE || hit == HIT_BORDER)
|
||||
{
|
||||
if (toolsModel.GetActiveTool() == TOOL_BEZIER ||
|
||||
toolsModel.GetActiveTool() == TOOL_SHAPE)
|
||||
switch (toolsModel.GetActiveTool())
|
||||
{
|
||||
if (ToolBase::pointSP != 0)
|
||||
{
|
||||
toolsModel.OnCancelDraw();
|
||||
case TOOL_BEZIER:
|
||||
case TOOL_SHAPE:
|
||||
if (ToolBase::pointSP != 0)
|
||||
{
|
||||
toolsModel.OnCancelDraw();
|
||||
imageArea.Invalidate();
|
||||
}
|
||||
break;
|
||||
|
||||
case TOOL_FREESEL:
|
||||
case TOOL_RECTSEL:
|
||||
toolsModel.OnFinishDraw();
|
||||
imageArea.Invalidate();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
toolsModel.resetTool(); // resets the point-buffer of the polygon and bezier functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue