From 95f6babd5e2ccc66bf7e97f74f804ddac4cf2fef Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 3 May 2024 08:53:44 +1000 Subject: scaling functions now warn instead of crashing with negative scales --- source/core/StarImageProcessing.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/core/StarImageProcessing.hpp') diff --git a/source/core/StarImageProcessing.hpp b/source/core/StarImageProcessing.hpp index 8316d18..4022d38 100644 --- a/source/core/StarImageProcessing.hpp +++ b/source/core/StarImageProcessing.hpp @@ -10,9 +10,9 @@ STAR_CLASS(Image); STAR_EXCEPTION(ImageOperationException, StarException); -Image scaleNearest(Image const& srcImage, Vec2F const& scale); -Image scaleBilinear(Image const& srcImage, Vec2F const& scale); -Image scaleBicubic(Image const& srcImage, Vec2F const& scale); +Image scaleNearest(Image const& srcImage, Vec2F scale); +Image scaleBilinear(Image const& srcImage, Vec2F scale); +Image scaleBicubic(Image const& srcImage, Vec2F scale); StringList colorDirectivesFromConfig(JsonArray const& directives); String paletteSwapDirectivesFromConfig(Json const& swaps); -- cgit v1.2.3