Skip to content

Commit

Permalink
color: rgb: Fix RGB -> BGR conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher N. Hesse <[email protected]>
  • Loading branch information
raymanfx committed Oct 29, 2023
1 parent e743e3e commit 24652fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffimage/src/color/rgb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ where
U: Copy,
{
fn from(rgb: Rgb<U, 0, 1, 2>) -> Self {
Rgb::<T, 2, 1, 0>([T::from(rgb[0]), T::from(rgb[1]), T::from(rgb[2])])
Rgb::<T, 2, 1, 0>([T::from(rgb[2]), T::from(rgb[1]), T::from(rgb[0])])
}
}

Expand Down

0 comments on commit 24652fb

Please sign in to comment.