From 860a34d6e6b98b52abf732a63ec31b2bc8d21c05 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Sun, 19 Mar 2023 10:12:44 +0100 Subject: [PATCH] core: Use get_pixel32_raw in BitmapData::color_transform --- core/src/bitmap/bitmap_data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/bitmap/bitmap_data.rs b/core/src/bitmap/bitmap_data.rs index 6c4e407cf..920ead9b2 100644 --- a/core/src/bitmap/bitmap_data.rs +++ b/core/src/bitmap/bitmap_data.rs @@ -841,7 +841,7 @@ impl<'gc> BitmapData<'gc> { { for x in x_min..x_max.min(self.width()) { for y in y_min..y_max.min(self.height()) { - let color = self.get_pixel_raw(x, y).unwrap().to_un_multiplied_alpha(); + let color = self.get_pixel32_raw(x, y).to_un_multiplied_alpha(); let color = color_transform * swf::Color::from(color); @@ -852,8 +852,8 @@ impl<'gc> BitmapData<'gc> { ) } } + self.set_cpu_dirty(true); } - self.set_cpu_dirty(true); } pub fn color_bounds_rect(