mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 09:20:43 +08: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:
committed by
GitHub
parent
8a4787b384
commit
945ee4b2a4
@@ -99,6 +99,18 @@ void ToolsModel::MakeBrushThickerOrThinner(BOOL bThinner)
|
||||
SetBrushWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
|
||||
}
|
||||
|
||||
void ToolsModel::MakeAirBrushThickerOrThinner(BOOL bThinner)
|
||||
{
|
||||
INT thickness = GetAirBrushWidth();
|
||||
SetAirBrushWidth(bThinner ? max(1, thickness - 1) : (thickness + 1));
|
||||
}
|
||||
|
||||
void ToolsModel::MakeRubberThickerOrThinner(BOOL bThinner)
|
||||
{
|
||||
INT thickness = GetRubberRadius();
|
||||
SetRubberRadius(bThinner ? max(1, thickness - 1) : (thickness + 1));
|
||||
}
|
||||
|
||||
int ToolsModel::GetShapeStyle() const
|
||||
{
|
||||
return m_shapeStyle;
|
||||
|
||||
Reference in New Issue
Block a user