Skip to content

Commit

Permalink
rhodonite: resize image ub
Browse files Browse the repository at this point in the history
Signed-off-by: x-t <[email protected]>
  • Loading branch information
x-t committed Jul 11, 2024
1 parent 3747d37 commit 86a77f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rhodonite/src/builder_images.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ struct ImageDimensions resize_calc(int width, int height, int max_width, int max
aspect_ratio_usable = aspect_ratio_per_height;
} else if (aspect_ratio_per_height > aspect_ratio_per_width) {
aspect_ratio_usable = aspect_ratio_per_width;
} else {
aspect_ratio_usable = aspect_ratio_per_height;
}

struct ImageDimensions dimensions = (struct ImageDimensions) {
Expand Down

0 comments on commit 86a77f4

Please sign in to comment.