mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 03:03:13 +00:00
[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
This commit is contained in:
parent
9a51c8e6c6
commit
1183e797b4
4 changed files with 9 additions and 0 deletions
|
@ -241,6 +241,7 @@ HBITMAP InitializeImage(LPCWSTR name, LPWIN32_FIND_DATAW pFound, BOOL isFile)
|
|||
HBITMAP SetBitmapAndInfo(HBITMAP hBitmap, LPCWSTR name, LPWIN32_FIND_DATAW pFound, BOOL isFile)
|
||||
{
|
||||
// update image
|
||||
canvasWindow.resetScrollPos();
|
||||
imageModel.PushImageForUndo(hBitmap);
|
||||
imageModel.ClearHistory();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue