Waveform appearance crack

Hello, everyone. I meet the problem in the following picture when drawing the data’s spectrum, the data comes from asio device. I don’t konw how to solve it. And it is very strange that when the window is fullscreen, the problem doesn’t show.

show your drawing code and maybe someone here can help you.