core: Make BitmapData::set_pixel32_raw inline

This commit is contained in:
Nathan Adams 2023-03-19 08:43:19 +01:00
parent aa17ef695c
commit 69721c06a8
1 changed files with 2 additions and 2 deletions

View File

@ -629,9 +629,9 @@ impl<'gc> BitmapData<'gc> {
self.set_pixel32(x as i32, y as i32, color.with_alpha(current_alpha)); self.set_pixel32(x as i32, y as i32, color.with_alpha(current_alpha));
} }
#[inline]
pub fn set_pixel32_raw(&mut self, x: u32, y: u32, color: Color) { pub fn set_pixel32_raw(&mut self, x: u32, y: u32, color: Color) {
let width = self.width(); self.pixels[(x + y * self.width) as usize] = color;
self.pixels[(x + y * width) as usize] = color;
} }
pub fn set_pixel32(&mut self, x: i32, y: i32, color: Color) { pub fn set_pixel32(&mut self, x: i32, y: i32, color: Color) {