diff options
| author | Dylan <boss@tehbox.org> | 2026-05-24 22:59:09 +1200 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2026-05-24 22:59:09 +1200 |
| commit | 7711536253315ba3b3628b8c6706573317c7e201 (patch) | |
| tree | f4a78af0d0ffd8cbde88a96361bce4a92b1cefcd /src/zlib.cpp | |
| parent | 85cd1ecf29c3a295536ccc3782c2415d7518aef0 (diff) | |
| download | tehimage-7711536253315ba3b3628b8c6706573317c7e201.tar.gz tehimage-7711536253315ba3b3628b8c6706573317c7e201.zip | |
feat: Cleanupsv0.0.3PNG-writing
Cleaning up code so its ready for release
Diffstat (limited to 'src/zlib.cpp')
| -rw-r--r-- | src/zlib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zlib.cpp b/src/zlib.cpp index 221137c..0b9cdb5 100644 --- a/src/zlib.cpp +++ b/src/zlib.cpp @@ -134,7 +134,7 @@ namespace TehImage { if(staticTree) return; - cout << "Building static tree" << endl; + // cout << "Building static tree" << endl; buildStaticHuffmanTree(&tree, &distTree); staticTree = true; haveTree = true; @@ -510,7 +510,7 @@ namespace TehImage else { writeCode(&outStream, codes[data[inPos]], codeLens[data[inPos]]); - hashTable.insert(curr, inPos); + hashTable.insertOrUpdate(curr, inPos); inPos++; } } |
