Fix buffer size in QImageBuffer.cs

This commit is contained in:
H. Utku Maden 2024-07-28 11:33:12 +03:00
parent dadd9f137a
commit 65609bf685

View File

@ -22,7 +22,7 @@ namespace Dashboard.Media.Color
Height = height; Height = height;
Depth = depth; Depth = depth;
buffer = new byte[width * height * depth]; buffer = new byte[(long)width * height * depth * format.BytesPerPixel()];
} }
~QImageBuffer() ~QImageBuffer()
{ {