mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-26 01:34:43 +01:00
Fixed overlapping memcpy
This commit is contained in:
parent
d47679c5cf
commit
d85fed00a0
@ -372,7 +372,7 @@ namespace ImGui {
|
|||||||
rawFFTs.resize(waterfallHeight);
|
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 pixel;
|
||||||
float dataRange = waterfallMax - waterfallMin;
|
float dataRange = waterfallMax - waterfallMin;
|
||||||
for (int j = 0; j < dataWidth; j++) {
|
for (int j = 0; j < dataWidth; j++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user