Fix UI freeze when zooming in on long samples (#7253)

This commit is contained in:
Pascal
2024-05-20 03:36:30 +07:00
committed by GitHub
parent ca109f94f4
commit 0071cb6f63

View File

@@ -53,7 +53,7 @@ void SampleWaveform::visualize(Parameters parameters, QPainter& painter, const Q
int pixelIndex = 0;
for (int i = 0; i < maxFrames; i += resolution)
for (int i = 0; i < maxFrames; i += static_cast<int>(resolution))
{
pixelIndex = i / framesPerPixel;
const int frameIndex = !parameters.reversed ? i : maxFrames - i;