kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
Fixed overlapping memcpy
rodzic
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++) {
|
||||
|
|
Ładowanie…
Reference in New Issue