From e49055053fceccde7b4401c53896df9d65b02e73 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 9 Nov 2026 08:15:43 +0700 Subject: [PATCH] Give the Type 3 widths warning a flag in the decoded image cache's warning set Patch 90 adds InterpreterWarning::Type3WidthsMissing and patch 91 matches every warning to a flag, so the merged match needs the new variant. --- vendor/hayro-interpret/src/cache.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vendor/hayro-interpret/src/cache.rs b/vendor/hayro-interpret/src/cache.rs index 28690ecacf..cb885bd6a7 100644 --- a/vendor/hayro-interpret/src/cache.rs +++ b/vendor/hayro-interpret/src/cache.rs @@ -141,6 +141,7 @@ fn warning_bit(warning: InterpreterWarning) -> u8 { InterpreterWarning::ImageDecodeFailure => 2, InterpreterWarning::ContentTruncated => 4, InterpreterWarning::ColorFallback => 8, + InterpreterWarning::Type3WidthsMissing => 16, } } @@ -151,6 +152,7 @@ fn warnings_in(bits: u8) -> impl Iterator { InterpreterWarning::ImageDecodeFailure, InterpreterWarning::ContentTruncated, InterpreterWarning::ColorFallback, + InterpreterWarning::Type3WidthsMissing, ] .into_iter() .filter(move |warning| bits & warning_bit(*warning) != 0)