aboutsummaryrefslogtreecommitdiff
path: root/src/zlib.cpp
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2026-05-24 22:59:09 +1200
committerDylan <boss@tehbox.org>2026-05-24 22:59:09 +1200
commit7711536253315ba3b3628b8c6706573317c7e201 (patch)
treef4a78af0d0ffd8cbde88a96361bce4a92b1cefcd /src/zlib.cpp
parent85cd1ecf29c3a295536ccc3782c2415d7518aef0 (diff)
downloadtehimage-0.0.3.tar.gz
tehimage-0.0.3.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.cpp4
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++;
}
}