about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8efd6ad..43aec69 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -31,6 +31,8 @@ impl<T: Count> Squasher<T> {
     /// Take an RGB image buffer and an output buffer. The function will fill
     /// the output buffer with indexes into the Palette.
     pub fn map_image(&mut self, image: &[u8], buffer: &mut [T]) {
+        // We have to map the colours of this image now because it might contain
+        // colours not present in the first image.
         let sorted = Self::unique_and_sort(image);
         self.map_selected(&sorted);