mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +00:00
[MSPAINT] Refactor updateCanvasAndScrollbars
This commit is contained in:
parent
a32212d96a
commit
cf64f121f2
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ void
|
||||||
updateCanvasAndScrollbars()
|
updateCanvasAndScrollbars()
|
||||||
{
|
{
|
||||||
selectionWindow.ShowWindow(SW_HIDE);
|
selectionWindow.ShowWindow(SW_HIDE);
|
||||||
imageArea.MoveWindow(3, 3, imageModel.GetWidth() * toolsModel.GetZoom() / 1000, imageModel.GetHeight() * toolsModel.GetZoom() / 1000, FALSE);
|
|
||||||
|
int zoomedWidth = imageModel.GetWidth() * toolsModel.GetZoom() / 1000;
|
||||||
|
int zoomedHeight = imageModel.GetHeight() * toolsModel.GetZoom() / 1000;
|
||||||
|
imageArea.MoveWindow(3, 3, zoomedWidth, zoomedHeight, FALSE);
|
||||||
|
|
||||||
scrollboxWindow.Invalidate(TRUE);
|
scrollboxWindow.Invalidate(TRUE);
|
||||||
imageArea.Invalidate(FALSE);
|
imageArea.Invalidate(FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue