From 4585c9cafa87cad6b54397af7e9375cc31b72f89 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 03:38:57 +1000 Subject: Lazy-loading of ImageOperation inside Directives also fixed cases of drawables not staying centered after adding directives that scale --- source/core/StarImageProcessing.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/core/StarImageProcessing.hpp') diff --git a/source/core/StarImageProcessing.hpp b/source/core/StarImageProcessing.hpp index 0b78408..ed3319b 100644 --- a/source/core/StarImageProcessing.hpp +++ b/source/core/StarImageProcessing.hpp @@ -18,6 +18,10 @@ Image scaleBicubic(Image const& srcImage, Vec2F const& scale); StringList colorDirectivesFromConfig(JsonArray const& directives); String paletteSwapDirectivesFromConfig(Json const& swaps); +struct NullImageOperation { + +}; + struct ErrorImageOperation { std::exception_ptr exception; }; @@ -133,7 +137,7 @@ struct FlipImageOperation { Mode mode; }; -typedef Variant ImageOperation; -- cgit v1.2.3