mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 07:36:05 +00:00
[MSPAINT] Define enum TOOLTYPE and use it (#4197)
Improve code quality and debuggability. CORE-17931
This commit is contained in:
parent
90c3f89bb2
commit
e9330371ea
8 changed files with 90 additions and 39 deletions
|
@ -57,12 +57,12 @@ void ToolsModel::SetBrushStyle(int nBrushStyle)
|
|||
NotifyToolSettingsChanged();
|
||||
}
|
||||
|
||||
int ToolsModel::GetActiveTool() const
|
||||
TOOLTYPE ToolsModel::GetActiveTool() const
|
||||
{
|
||||
return m_activeTool;
|
||||
}
|
||||
|
||||
void ToolsModel::SetActiveTool(int nActiveTool)
|
||||
void ToolsModel::SetActiveTool(TOOLTYPE nActiveTool)
|
||||
{
|
||||
m_activeTool = nActiveTool;
|
||||
NotifyToolChanged();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue