mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
Fixed overlapping memcpy
This commit is contained in:
parent
d47679c5cf
commit
d85fed00a0
@ -372,7 +372,7 @@ namespace ImGui {
|
||||
rawFFTs.resize(waterfallHeight);
|
||||
}
|
||||
|
||||
memcpy(&waterfallFb[dataWidth], waterfallFb, dataWidth * (waterfallHeight - 1) * sizeof(uint32_t));
|
||||
memmove(&waterfallFb[dataWidth], waterfallFb, dataWidth * (waterfallHeight - 1) * sizeof(uint32_t));
|
||||
float pixel;
|
||||
float dataRange = waterfallMax - waterfallMin;
|
||||
for (int j = 0; j < dataWidth; j++) {
|
||||
|
Loading…
Reference in New Issue
Block a user