mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 04:33:12 +00:00
[MSPAINT] Fix crash on zoom out
- Check the denominator for zero for both zoomed width and height. - Do not allow to move zoom slider above possible position. - Move commonly used `zoomTo` function into new header file. CORE-14539
This commit is contained in:
parent
065e70048d
commit
955048e50a
5 changed files with 31 additions and 9 deletions
14
base/applications/mspaint/common.h
Normal file
14
base/applications/mspaint/common.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* PROJECT: PAINT for ReactOS
|
||||
* LICENSE: LGPL
|
||||
* FILE: base/applications/mspaint/common.h
|
||||
* PURPOSE: Commonly used functions
|
||||
* PROGRAMMERS: Benedikt Freisen
|
||||
* Stanislav Motylkov
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* FUNCTIONS ********************************************************/
|
||||
|
||||
extern BOOL zoomTo(int, int, int);
|
Loading…
Add table
Add a link
Reference in a new issue