* Bitmap bug fixed 4.x-dev

Thu, 08 Jul 2021 09:15:25 +0300

author
cemkalyoncu
date
Thu, 08 Jul 2021 09:15:25 +0300
branch
4.x-dev
changeset 1704
a0fdf33ceefe
parent 1703
e7ba5162aabb
child 1706
539703473fd2

* Bitmap bug fixed

Source/Gorgon/Graphics/Bitmap.cpp file | annotate | diff | comparison | revisions
--- a/Source/Gorgon/Graphics/Bitmap.cpp	Wed Jul 07 12:41:34 2021 +0300
+++ b/Source/Gorgon/Graphics/Bitmap.cpp	Thu Jul 08 09:15:25 2021 +0300
@@ -279,7 +279,7 @@
 			}
 		}
 
-		Assume(img);
+		Assume(std::move(img));
 	}
 
 	void Bitmap::StripAlpha() {
@@ -302,7 +302,7 @@
 			}
 		}
 
-		Assume(img);
+		Assume(std::move(img));
 	}
 
 	void Bitmap::Grayscale(float ratio, GrayscaleConversionMethod method) {
@@ -385,7 +385,7 @@
             }
         }
         
-        Assume(img);
+        Assume(std::move(img));
     }
 	
 	std::vector<Geometry::Bounds> Bitmap::CreateLinearAtlas(Containers::Collection<const Bitmap> list, AtlasMargin margins) {
@@ -581,7 +581,7 @@
 			yy++;
 		}
 
-		Assume(img);
+		Assume(std::move(img));
 
 		return ret;
 	}

mercurial