From dc9cdd15e68ff1401e62fe5d1c0bcddf8a64ef92 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 3 Mar 2025 22:24:28 +0800 Subject: [PATCH] fix: Bitmap::from_image_data width and height (#1012) --- src/sk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sk.rs b/src/sk.rs index e96cfc99..47c4d6fe 100644 --- a/src/sk.rs +++ b/src/sk.rs @@ -3558,8 +3558,8 @@ impl Bitmap { }; Bitmap(ffi::skiac_bitmap_info { bitmap, - width: row_bytes as i32, - height: (size / row_bytes / 4) as i32, + width: width as i32, + height: height as i32, is_canvas: false, }) }