avm2: Use proper scale for `Graphics.beginBitmapFill` (fix #10628)

This commit is contained in:
Mike Welsh 2023-04-09 18:17:27 -07:00 committed by Nathan Adams
parent 81d907b9f0
commit 7cfd4470b1
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ pub fn begin_bitmap_fill<'gc>(
height: bitmap.height() as u16, height: bitmap.height() as u16,
}; };
let scale_matrix = Matrix::scale( let scale_matrix = Matrix::scale(
Fixed16::from_f64(bitmap.width as f64), (Twips::TWIPS_PER_PIXEL as i16).into(),
Fixed16::from_f64(bitmap.height as f64), (Twips::TWIPS_PER_PIXEL as i16).into(),
); );
if let Some(mut draw) = this.as_drawing(activation.context.gc_context) { if let Some(mut draw) = this.as_drawing(activation.context.gc_context) {