mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[MSPAINT] IDM_IMAGEROTATEMIRROR: Fix indent
Follow-up to #5660. CORE-19094
This commit is contained in:
parent
85377ee3db
commit
e4512e6af2
1 changed files with 10 additions and 0 deletions
|
@ -916,35 +916,45 @@ LRESULT CMainWindow::OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL& bH
|
|||
switch (mirrorRotateDialog.DoModal(mainWindow.m_hWnd))
|
||||
{
|
||||
case 1: /* flip horizontally */
|
||||
{
|
||||
if (selectionModel.m_bShow)
|
||||
selectionModel.FlipHorizontally();
|
||||
else
|
||||
imageModel.FlipHorizontally();
|
||||
break;
|
||||
}
|
||||
case 2: /* flip vertically */
|
||||
{
|
||||
if (selectionModel.m_bShow)
|
||||
selectionModel.FlipVertically();
|
||||
else
|
||||
imageModel.FlipVertically();
|
||||
break;
|
||||
}
|
||||
case 3: /* rotate 90 degrees */
|
||||
{
|
||||
if (selectionModel.m_bShow)
|
||||
selectionModel.RotateNTimes90Degrees(1);
|
||||
else
|
||||
imageModel.RotateNTimes90Degrees(1);
|
||||
break;
|
||||
}
|
||||
case 4: /* rotate 180 degrees */
|
||||
{
|
||||
if (selectionModel.m_bShow)
|
||||
selectionModel.RotateNTimes90Degrees(2);
|
||||
else
|
||||
imageModel.RotateNTimes90Degrees(2);
|
||||
break;
|
||||
}
|
||||
case 5: /* rotate 270 degrees */
|
||||
{
|
||||
if (selectionModel.m_bShow)
|
||||
selectionModel.RotateNTimes90Degrees(3);
|
||||
else
|
||||
imageModel.RotateNTimes90Degrees(3);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue