[aseprite] 201/308: Minor change in ModifySelectionCommand::applyModifier()

Tobias Hansen thansen at moszumanska.debian.org
Tue Mar 8 02:45:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit aa7d3d8918ee13fad1bd312b50661da24ead5b10
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Feb 1 18:24:34 2016 -0300

    Minor change in ModifySelectionCommand::applyModifier()
    
    Use local variable dstImage.
---
 src/app/commands/cmd_modify_selection.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/app/commands/cmd_modify_selection.cpp b/src/app/commands/cmd_modify_selection.cpp
index e7e6029..9a882cc 100644
--- a/src/app/commands/cmd_modify_selection.cpp
+++ b/src/app/commands/cmd_modify_selection.cpp
@@ -1,5 +1,5 @@
 // Aseprite
-// Copyright (C) 2015  David Capello
+// Copyright (C) 2015, 2016  David Capello
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License version 2 as
@@ -186,7 +186,7 @@ void ModifySelectionCommand::applyModifier(const Mask* srcMask, Mask* dstMask,
                                            const doc::BrushType brush) const
 {
   const doc::Image* srcImage = srcMask->bitmap();
-  const doc::Image* dstImage = dstMask->bitmap();
+  doc::Image* dstImage = dstMask->bitmap();
 
   // Image bounds to clip get/put pixels
   const gfx::Rect srcBounds = srcImage->bounds();
@@ -240,7 +240,7 @@ void ModifySelectionCommand::applyModifier(const Mask* srcMask, Mask* dstMask,
       }
 
       if (c)
-        doc::put_pixel(dstMask->bitmap(),
+        doc::put_pixel(dstImage,
                        srcMask->bounds().x+x,
                        srcMask->bounds().y+y, 1);
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list