History log of /reactos/base/applications/mspaint/mouse.cpp (Results 1 – 25 of 52)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 3799d37a 25-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] mouse.cpp: Renaming some items for human readability

CORE-19094


# fd38a6f7 25-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] mouse.cpp: Erase type warnings of SIZE_T vs. INT

CORE-19094


# b8598e09 25-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Improve Undo/Redo handling of selection (#6035)

Consistent behavior of the application.
- Add ShiftPtStack and BuildMaskFromPtStack
helper functions.
- Move some codes of selectionMod

[MSPAINT] Improve Undo/Redo handling of selection (#6035)

Consistent behavior of the application.
- Add ShiftPtStack and BuildMaskFromPtStack
helper functions.
- Move some codes of selectionModel to
mouse.cpp.
CORE-19226

show more ...


# f710e5a2 24-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Define SelectionBaseTool and use it (#6034)

Refactoring and arrangement for selection handling.
- Move some selection-related codes in canvas.cpp to mouse.cpp.
- Add SelectionBaseTool st

[MSPAINT] Define SelectionBaseTool and use it (#6034)

Refactoring and arrangement for selection handling.
- Move some selection-related codes in canvas.cpp to mouse.cpp.
- Add SelectionBaseTool structure for FreeSelTool and RectSelTool.
CORE-19094

show more ...


# e52379a6 24-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Delete redundant comments

Refactoring. CORE-19094


# c20b4ca2 23-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Simplify mouse.cpp with deleting ctors

Refactoring. CORE-19094


# 96e48dcd 23-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] ToolBase::m_tool is not used. Delete it

Refactoring. CORE-19094


# 1aeebfda 23-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Simplify RECT/CRect handling

Refactoring. CORE-19094


# 4a52a4b0 23-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Add selectionModel.drawFrameOnCanvas and use it

Refactoring. CORE-19094


# e5792200 22-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Introduce partial image history, Part 2 (#6005)

Follow-up to #5994. Reduce the lag and the
cost of drawing on large image.
- Introduce partial image history on
SmoothDrawTool and Shap

[MSPAINT] Introduce partial image history, Part 2 (#6005)

Follow-up to #5994. Reduce the lag and the
cost of drawing on large image.
- Introduce partial image history on
SmoothDrawTool and ShapeTool.
- We can draw with pen smoothly even
when the image is huge (10000x10000).
CORE-19237

show more ...


# 72081168 19-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Introduce partial image history (#5994)

- Add IMAGE_PART structure and use as history items.
- Overload ImageModel::PushImageForUndo(const RECT& rcPartial).
- Add ToolsModel::GetToolSize

[MSPAINT] Introduce partial image history (#5994)

- Add IMAGE_PART structure and use as history items.
- Overload ImageModel::PushImageForUndo(const RECT& rcPartial).
- Add ToolsModel::GetToolSize.
- Implement partial image history on TwoPointDrawTool.
CORE-19094

show more ...


# 157739a6 16-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] s/AirBrushWidth/AirBrushRadius/

Fix logical error. CORE-19094


# fa4b38d9 04-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Localize g_ptStart and g_ptEnd into mouse.cpp

And move some ToolsModel code into mouse.cpp
CORE-19094


# 640d67d1 04-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Adapt to Unicode and <strsafe.h> (#5882)

- TCHAR --> WCHAR
- LPTSTR --> LPWSTR
- LPCTSTR --> LPCWSTR
- CString --> CStringW
- TEXT("...") --> L"..."
- _T("...") --> L"..."
- ::SendMe

[MSPAINT] Adapt to Unicode and <strsafe.h> (#5882)

- TCHAR --> WCHAR
- LPTSTR --> LPWSTR
- LPCTSTR --> LPCWSTR
- CString --> CStringW
- TEXT("...") --> L"..."
- _T("...") --> L"..."
- ::SendMessage( --> ::SendMessageW(
- ::GetWindowText( --> ::GetWindowTextW(
- ::SetWindowText( --> ::SetWindowTextW(
- Replace _tcscat with StringCchCatW.
- Replace _tcslen with wcslen.
etc. CORE-19094

show more ...


# 37f56d24 03-Nov-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Commonize OnFinishDraw and OnCancelDraw (#5875)

Reduce code and binary size a bit. This will reduce 1024 bytes in binary.
Unify ToolBase::OnFinishDraw and ToolBase::OnCancelDraw to ToolBa

[MSPAINT] Commonize OnFinishDraw and OnCancelDraw (#5875)

Reduce code and binary size a bit. This will reduce 1024 bytes in binary.
Unify ToolBase::OnFinishDraw and ToolBase::OnCancelDraw to ToolBase::OnEndDraw.
CORE-19094

show more ...


# 8f1eb03a 16-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Improve Zoom tool (#5798)

- Delete global zoomTo function.
- Add CCanvasWindow::zoomTo and
CCanvasWindow::getNewZoomRect functions.
- Rename CCanvasWindow::updateScrollInfo as
CCan

[MSPAINT] Improve Zoom tool (#5798)

- Delete global zoomTo function.
- Add CCanvasWindow::zoomTo and
CCanvasWindow::getNewZoomRect functions.
- Rename CCanvasWindow::updateScrollInfo as
CCanvasWindow::updateScrollRange.
- Rename CCanvasWindow::resetScrollPos as
CCanvasWindow::updateScrollPos.
- Draw the proper zoom rectangle on mouse move.
- Revert the active tool on click when the tool
was Zoom.
CORE-19094

show more ...


# fd1e1584 16-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Calculate intersection to reduce bits transfer (#5795)

Drawing lines smoothly on big image.
- In CCanvasWindow::DoDraw, calculate the
intersection to reduce bits transfer.
- Improve S

[MSPAINT] Calculate intersection to reduce bits transfer (#5795)

Drawing lines smoothly on big image.
- In CCanvasWindow::DoDraw, calculate the
intersection to reduce bits transfer.
- Improve SmoothDrawTool in handling Shift key.
CORE-19094, CORE-19237

show more ...


# 62eeb158 10-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Improve Zoom tool (#5781)

- Delete CCanvasWindow::drawZoomFrame.
- Invalidate the canvas on mouse move when
the active tool is Zoom tool.
- Add ZoomTool::OnDrawOverlayOnCanvas to
d

[MSPAINT] Improve Zoom tool (#5781)

- Delete CCanvasWindow::drawZoomFrame.
- Invalidate the canvas on mouse move when
the active tool is Zoom tool.
- Add ZoomTool::OnDrawOverlayOnCanvas to
draw the zoom rectangle without flickering.
- Improve the zoom trackbar position.
- Display the zoom rate on changing the value
of the zoom trackbar.
- Reverse the direction of the zoom trackbar.
- Don't draw the focus rectangle.
CORE-19215, CORE-19216

show more ...


# 8d8f4d32 08-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Zoom tool shouldn't use undo buffer (#5778)

Remove PushImageForUndo call in Zoom tool. CORE-19214


# 3579ea78 05-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Fix assertion failure on text tool (#5762)

Kill the assertion failure on choosing text tool.
Check whether textEditWindow is not null by using IsWindowVisible.
CORE-19094


# 945ee4b2 28-Sep-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[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-1

[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

show more ...


# 8a4787b3 28-Sep-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Larger/smaller brush nib on Ctrl+Plus/Minus (#5739)

- Introduce the concept of "brush width" to the
tools model.
- Enable changing the brush width by Ctrl+Plus/Minus
key combination

[MSPAINT] Larger/smaller brush nib on Ctrl+Plus/Minus (#5739)

- Introduce the concept of "brush width" to the
tools model.
- Enable changing the brush width by Ctrl+Plus/Minus
key combination in TOOL_BRUSH.
- Re-define brush styles.
CORE-19094

show more ...


# f2a01224 28-Sep-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Larger/smaller pen nib on Ctrl+Plus/Minus (#5738)

- Introduce the concept of pen width (not line width) to the tools model.
- Enable changing pen/line width by Ctrl+Plus/Minus key combina

[MSPAINT] Larger/smaller pen nib on Ctrl+Plus/Minus (#5738)

- Introduce the concept of pen width (not line width) to the tools model.
- Enable changing pen/line width by Ctrl+Plus/Minus key combination in TOOL_PEN,
TOOL_LINE, TOOL_BEZIER, TOOL_RECT, TOOL_SHAPE, TOO_ELLIPSE, and
TOOL_RRECT tools.
CORE-19094

show more ...


# cbc63d87 27-Sep-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] "Selection Clone" and "Selection Brush" (#5734)

- Stamp the image of the selection when the user clicks on
the selection while holding down the Ctrl key.
- Draw the image of the select

[MSPAINT] "Selection Clone" and "Selection Brush" (#5734)

- Stamp the image of the selection when the user clicks on
the selection while holding down the Ctrl key.
- Draw the image of the selection continuously when the user
starts dragging the selection while holding down the Shift key.
CORE-19094

show more ...


# 389d0465 26-Sep-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Restrict drawing direction on Shift key (#5726)

- While holding down the Shift key, drawing lines with the
pen/brush is limited to either of 8 directions (horizontal/vertical/diagonal).

[MSPAINT] Restrict drawing direction on Shift key (#5726)

- While holding down the Shift key, drawing lines with the
pen/brush is limited to either of 8 directions (horizontal/vertical/diagonal).
- s/abs/labs/
CORE-19094

show more ...


123