From 4854647d659f75ac6cf4575b61d1dcfd25865791 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sun, 18 Dec 2022 20:00:47 -0500 Subject: lazy --- src/undo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/undo.cpp') diff --git a/src/undo.cpp b/src/undo.cpp index d55cedc..ec85530 100644 --- a/src/undo.cpp +++ b/src/undo.cpp @@ -75,7 +75,7 @@ void History_Action_DoSwapBitmap(memory *Memory, history_action *ActionPointer, Bitmap_SwapData((uint8 *)UncompressedTempBuffer, (uint8 *)Address_Data, FullSize, Action.Direction); // Then we recompress the old pixels and evaluate its size, and since the size can be different... - uint64 NewSize = Data_Compress(Memory, UncompressedTempBuffer, FullSize, CompressedTempBuffer, BytesForCompressedPart, 0); // Z_BEST_SPEED); + uint64 NewSize = Data_Compress(Memory, UncompressedTempBuffer, FullSize, CompressedTempBuffer, BytesForCompressedPart, Z_BEST_SPEED); // we have to shift the undo stack. if (NewSize != CompressedSize) { @@ -254,7 +254,7 @@ static void History_Action_Add(memory *Memory, history_action ActionData, void * // history tree as the destination. // ShiftAmount is also being used to save the uncompressed size. uint32 BytesForCompressedPart = (uint32)100 * 1024 * 1024; - Action->Size = Data_Compress(Memory, Address_Data, Action->ShiftAmount, Address_HistoryTree, BytesForCompressedPart, 0); // Z_BEST_SPEED); + Action->Size = Data_Compress(Memory, Address_Data, Action->ShiftAmount, Address_HistoryTree, BytesForCompressedPart, Z_BEST_SPEED); } else if (Action->Type == action_type_shift) { -- cgit v1.2.3