mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 00:46:10 +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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user