Skip to content

Commit

Permalink
Increase OutlinePixels limit from 1024 to 1536
Browse files Browse the repository at this point in the history
@Trihedraf reported that the game crashed when killing Diablo.

1536 should be enough for Diablo and any custom sprites (if not, we can increase it further).
  • Loading branch information
glebm committed Jun 23, 2024
1 parent 15e44a1 commit 8a135c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/engine/render/clx_render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void DoRenderBackwards(
}
}

constexpr size_t MaxOutlinePixels = 1024;
constexpr size_t MaxOutlinePixels = 1536;
constexpr size_t MaxOutlineSpriteWidth = 253;
using OutlinePixels = StaticVector<PointOf<uint8_t>, MaxOutlinePixels>;
using OutlineRowSolidRuns = StaticVector<std::pair<uint8_t, uint8_t>, MaxOutlineSpriteWidth / 2 + 1>;
Expand Down

0 comments on commit 8a135c9

Please sign in to comment.