Fix buffer size in QImageBuffer.cs
This commit is contained in:
parent
dadd9f137a
commit
65609bf685
@ -22,7 +22,7 @@ namespace Dashboard.Media.Color
|
||||
Height = height;
|
||||
Depth = depth;
|
||||
|
||||
buffer = new byte[width * height * depth];
|
||||
buffer = new byte[(long)width * height * depth * format.BytesPerPixel()];
|
||||
}
|
||||
~QImageBuffer()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user