mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:22:58 +00:00
[MSPAINT] Larger/smaller Rubber/AirBrush on Ctrl+Plus/Minus (#5740)
- Enable changing rubber/airbrush thickness by Ctrl+Plus / Ctrl+Minus key combination in TOOL_AIRBRUSH and TOOL_RUBBER. CORE-19094
This commit is contained in:
parent
8a4787b384
commit
945ee4b2a4
3 changed files with 24 additions and 0 deletions
|
@ -505,6 +505,11 @@ struct RubberTool : SmoothDrawTool
|
|||
else
|
||||
Replace(m_hdc, g_ptEnd.x, g_ptEnd.y, x, y, m_fg, m_bg, toolsModel.GetRubberRadius());
|
||||
}
|
||||
|
||||
void OnSpecialTweak(BOOL bMinus) override
|
||||
{
|
||||
toolsModel.MakeRubberThickerOrThinner(bMinus);
|
||||
}
|
||||
};
|
||||
|
||||
// TOOL_FILL
|
||||
|
@ -631,6 +636,11 @@ struct AirBrushTool : SmoothDrawTool
|
|||
COLORREF rgb = bLeftButton ? m_fg : m_bg;
|
||||
Airbrush(m_hdc, x, y, rgb, toolsModel.GetAirBrushWidth());
|
||||
}
|
||||
|
||||
void OnSpecialTweak(BOOL bMinus) override
|
||||
{
|
||||
toolsModel.MakeAirBrushThickerOrThinner(bMinus);
|
||||
}
|
||||
};
|
||||
|
||||
// TOOL_TEXT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue