diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-12-18 20:00:47 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-12-18 20:00:47 -0500 |
commit | 4854647d659f75ac6cf4575b61d1dcfd25865791 (patch) | |
tree | 3296bdfa30fa76688844755b37094753ea82d033 /src/undo.cpp | |
parent | bedd6906eabdd513042d6a178d4dc56a3a41d1d3 (diff) |
lazy
Diffstat (limited to 'src/undo.cpp')
-rw-r--r-- | src/undo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |