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

[MSPAINT] Add get/putSubImage in dib.cpp and use them

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 ...


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

[MSPAINT] Show out-of-memory message (#5817)

- Improve ImageModel::PushImageForUndo.
- Use FormatMessage in newly added
ShowOutOfMemory function.
- Call ShowOutOfMemory() when out of memory.
C

[MSPAINT] Show out-of-memory message (#5817)

- Improve ImageModel::PushImageForUndo.
- Use FormatMessage in newly added
ShowOutOfMemory function.
- Call ShowOutOfMemory() when out of memory.
CORE-19227, 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 ...


# 1183e797 12-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Reset scroll position in some situations (#5789)

In some situations, the scroll position should be reset.
- Add CCanvasWindow::resetScrollPos method.
- Reset the scroll position on loadi

[MSPAINT] Reset scroll position in some situations (#5789)

In some situations, the scroll position should be reset.
- Add CCanvasWindow::resetScrollPos method.
- Reset the scroll position on loading a file.
- Reset the scroll position on mirroring/rotating
the image.
CORE-19094

show more ...


# 70d5c864 12-Oct-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Do type-cast (float) for xDpi and yDpi

CORE-19094


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

[MSPAINT] Update scroll info on loading file (#5761)

The scroll info was not updated when the file is loading.
- Rename CCanvasWindow::Update as CCanvasWindow::updateScrollInfo.
- Update scroll in

[MSPAINT] Update scroll info on loading file (#5761)

The scroll info was not updated when the file is loading.
- Rename CCanvasWindow::Update as CCanvasWindow::updateScrollInfo.
- Update scroll info on ImageModel::NotifyImageChanged.
- Improve ImageModel::ClearHistory.
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 ...


# 993a4502 10-Sep-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Use wait cursor (#5660)

- Implement CWaitCursor class in newly-added "waitcursor.h".
- Use CWaitCursor to manage the wait cursor.
- Improve WM_SETCURSOR handlings.
CORE-19094


# 455c1fe1 20-Aug-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Speed up for black and white (#5563)

Follow-up to #5554.
- Speed up ImageModel::PushBlackAndWhite
by using GetDIBits and SetDIBits.
CORE-19094


# ba53f72a 09-Aug-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Send mail with image (retry) (#5404)

- Add OpenMailer function.
- Add IDS_CANTSENDMAIL.
- Send a mail by using mapi32!MAPISendMail/W.
- Extend SaveDIBToFile function by adding a
para

[MSPAINT] Send mail with image (retry) (#5404)

- Add OpenMailer function.
- Add IDS_CANTSENDMAIL.
- Send a mail by using mapi32!MAPISendMail/W.
- Extend SaveDIBToFile function by adding a
parameter.
CORE-19094

show more ...


# 70e05170 08-Aug-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT][ATL] Delete deprecated functions (#5542)

- Rewrite CImageDx to reduce improper dependency with CImage.
- Check if the filename extension is supported before saving the files.
- Delete de

[MSPAINT][ATL] Delete deprecated functions (#5542)

- Rewrite CImageDx to reduce improper dependency with CImage.
- Check if the filename extension is supported before saving the files.
- Delete deprecated functions in CImage.
CORE-19094

show more ...


# 3e23cdf9 05-Jul-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Some bug fixes on loading/saving files (#5385)

- Display a correct error message on failing to save a file.
- Don't confuse the main file info and the non-main file info.
- Rename ShowFi

[MSPAINT] Some bug fixes on loading/saving files (#5385)

- Display a correct error message on failing to save a file.
- Don't confuse the main file info and the non-main file info.
- Rename ShowFileLoadError as ShowError, and strengthen and move it to dialogs.cpp.
- Add SetFileInfo and InitializeImage helper functions.
- Add IDS_SAVEERROR resource string.
- Modify SaveDIBToFile, SetBitmapAndInfo, and DoLoadImageFile functions.
CORE-18867

show more ...


# f5200e6c 27-Jun-2023 Stanislav Motylkov <x86corez@gmail.com>

[MSPAINT] Update copyright years for the C++ code

According to Benedikt Freisen, he didn't port the code base to C++
until 2015. Addendum to 8f1f1c7a5a6. CORE-18867


# 8f1f1c7a 23-Jun-2023 Stanislav Motylkov <x86corez@gmail.com>

[MSPAINT] Update copyright headers

Use LGPL-2.0-or-later as the first available LGPL version on SPDX
taking into account 530512f17ec67a42e7971e3d2a9c7a00e35c32d0 commit message.

CORE-18867


# 96d38836 19-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Follow-up of Realize Masked Skew (9afcbea)

CORE-18867


# 9afcbea2 19-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Realize Masked Skew

- Add CreateMonoBitmap and CopyMonoImage functions to dib.cpp.
- Add bMono parameter to SkewDIB function.
- Add hbmMask parameter to InsertFromHBITMAP function.
- Add T

[MSPAINT] Realize Masked Skew

- Add CreateMonoBitmap and CopyMonoImage functions to dib.cpp.
- Add bMono parameter to SkewDIB function.
- Add hbmMask parameter to InsertFromHBITMAP function.
- Add ToolsModel::IsSelection.
CORE-18867

show more ...


# 9f56e67b 18-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Use CF_DIB instead of CF_BITMAP (#5349)

CF_BITMAP is not recommended format for copying. In fact, Win10 won't accept it.
- Use CF_DIB clipboard format instead of CF_BITMAP in copying.
-

[MSPAINT] Use CF_DIB instead of CF_BITMAP (#5349)

CF_BITMAP is not recommended format for copying. In fact, Win10 won't accept it.
- Use CF_DIB clipboard format instead of CF_BITMAP in copying.
- Use CF_ENHMETAFILE, CF_DIB, or CF_BITMAP in pasting.
- Add BitmapToClipboardDIB, BitmapFromClipboardDIB, and BitmapFromHEMF helper functions to dib.cpp.
- Re-enable paste by fixing the bug that is embugged in the previous commit.
- Enable Cut, Copy, Paste, and Delete on text editing box by modifying OnInitMenuPopup.
- Add IDS_CANTPASTE resource string to show message on paste failure.
CORE-18867

show more ...


# e8c7e300 17-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Establish Undo/Redo management (#5347)

- Painting the canvas is done by overlaying the multiple layers.
- Drawing each overlay is implemented as polymorphism of OOP.
- Refine the Undo/Re

[MSPAINT] Establish Undo/Redo management (#5347)

- Painting the canvas is done by overlaying the multiple layers.
- Drawing each overlay is implemented as polymorphism of OOP.
- Refine the Undo/Redo mechanism.
- Some adjustments.
CORE-17969

show more ...


# 2f856f6f 15-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Add CachedBufferDIB function and use it

We do caching on buffering paint.
This will improve performance a little.
CORE-18867


# 318b2e78 14-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Trivial improvements

- Use SetPixelV instead of SetPixel.
- BI_RGB is zero.
- Use CS_HREDRAW and CS_VREDRAW.
CORE-18867


# 2b623c1d 13-Jun-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Refactor ImageModel (#5335)

- Unify ImageModel::Insert and ImageModel::CopyPrevious to ImageModel::PushImageForUndo.
- Delete useless stuffs.
- Fix some memory leaks.
- Fix IDM_IMAGECRO

[MSPAINT] Refactor ImageModel (#5335)

- Unify ImageModel::Insert and ImageModel::CopyPrevious to ImageModel::PushImageForUndo.
- Delete useless stuffs.
- Fix some memory leaks.
- Fix IDM_IMAGECROP.
CORE-17969, CORE-18867

show more ...


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

[MSPAINT] Use better units for image resolution (#5301)

Our paint program used the pixels per meter (PPM)
unit but this unit is hardly used in the world.
Let's use DPI (dots per inch) and/or pixel

[MSPAINT] Use better units for image resolution (#5301)

Our paint program used the pixels per meter (PPM)
unit but this unit is hardly used in the world.
Let's use DPI (dots per inch) and/or pixels per
centimeter (PPCM). CORE-18867

show more ...


# aac89519 01-Apr-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT] Make selection window-less (#5208)

- Delete selection.cpp and selection.h and selectionWindow.
- Extend ColorKeyedMaskBlt function.
- Implement selection resizing.
CORE-18867


# 29e147be 28-Mar-2023 Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>

[MSPAINT][ATL] Encapsulation: mainWindow (#5178)

- Add DoCreate methods to CFullscreenWindow, CMiniatureWindow, and CMainWindow classes.
- Do encapsulation around mainWindow and _tWinMain.
- Add G

[MSPAINT][ATL] Encapsulation: mainWindow (#5178)

- Add DoCreate methods to CFullscreenWindow, CMiniatureWindow, and CMainWindow classes.
- Do encapsulation around mainWindow and _tWinMain.
- Add GetOpenFileName, GetSaveFileName, and ChooseColor helper methods to CMainWindow class.
- Move some code in WinMain into CMainWindow::OnCreate.
- Delay creation of CFullscreenWindow and CMiniatureWindow.
- Extend ATL CImage class as CImageDx in newly-created atlimagedx.h of mspaint.
CORE-18867

show more ...


12