Various Magic tools: mend update_rect->h miscalc.
e.g. this "update_rect->h = (y + 16) - update_rect->h;" should be "update_rect->h = (y + 16) - update_rect->y;"
This commit is contained in:
parent
322780d735
commit
2083b66564
13 changed files with 48 additions and 40 deletions
|
|
@ -4,7 +4,7 @@
|
|||
Distortion Magic Tool Plugin
|
||||
Tux Paint - A simple drawing program for children.
|
||||
|
||||
Copyright (c) 2002-2021 by Bill Kendrick and others; see AUTHORS.txt
|
||||
Copyright (c) 2002-2022 by Bill Kendrick and others; see AUTHORS.txt
|
||||
bill@newbreedsoftware.com
|
||||
http://www.tuxpaint.org/
|
||||
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
(See COPYING.txt)
|
||||
|
||||
Last updated: September 21, 2021
|
||||
Last updated: October 19, 2022
|
||||
$Id$
|
||||
*/
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ void distortion_drag(magic_api * api, int which, SDL_Surface * canvas,
|
|||
update_rect->x = ox - 8;
|
||||
update_rect->y = oy - 8;
|
||||
update_rect->w = (x + 8) - update_rect->x;
|
||||
update_rect->h = (y + 8) - update_rect->h;
|
||||
update_rect->h = (y + 8) - update_rect->y;
|
||||
|
||||
|
||||
api->playsound(snd_effect, (x * 255) / canvas->w, // pan
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue