Skip to content

Commit

Permalink
CompressFrameTiles: compression ratio tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
gligli committed May 28, 2023
1 parent 54d53ff commit a4be65d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified tiler.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion tilingencoder.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ procedure TFrame.CompressFrameTiles;
CompStream: Tcompressionstream;
begin
CompressedFrameTiles.Clear;
CompStream := Tcompressionstream.create(Tcompressionlevel.clfastest, CompressedFrameTiles, True);
CompStream := Tcompressionstream.create(Tcompressionlevel.cldefault, CompressedFrameTiles, True);
try
CompStream.WriteBuffer(FrameTiles[0]^, Length(TileMap) * Length(TileMap[0]) * (SizeOf(TTile) + SizeOf(TRGBPixels) + SizeOf(TPalPixels)));
CompStream.flush;
Expand Down

0 comments on commit a4be65d

Please sign in to comment.