Skip to content

Commit a8cbd04

Browse files
author
Christian Wischenbart
committed
Used the wrong array.
Caused button images to be flipped horizontally if created from RawRGB
1 parent 0828eb9 commit a8cbd04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/StreamDeckSharp/StreamDeckKeyBitmap_Drawing.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static StreamDeckKeyBitmap FromRawBitmap(byte[] bitmapData)
8989
{
9090
var c = (byte[])bitmapData.Clone();
9191
FlipHorizontal(c, StreamDeckHID.iconSize);
92-
return new StreamDeckKeyBitmap(bitmapData);
92+
return new StreamDeckKeyBitmap(c);
9393
}
9494

9595
private static byte[] GetStreamDeckDataFromBitmap(int iconSize, Bitmap image)

0 commit comments

Comments
 (0)