Skip to content

Commit

Permalink
fix: Bitmap::from_image_data width and height (#1012)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn authored Mar 3, 2025
1 parent eeed091 commit dc9cdd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
Expand Down

0 comments on commit dc9cdd1

Please sign in to comment.