四个方向 分块渲染
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "Frequency_Trace.h"
|
||||
#include "Plottable_Real_Time_Data.h"
|
||||
#include "Heatmap_Utils.h"
|
||||
#include "../render/Blend2D_Cache.h"
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
@@ -47,7 +48,7 @@ void Frequency_Trace_Control::paint(Painter& painter, const Render_State_View& v
|
||||
std::vector<PointF> points;
|
||||
points.reserve(samples.size());
|
||||
for(const auto& [tick, value] : samples)
|
||||
points.push_back({x.coord_to_pixel(tick), y.coord_to_pixel(value)});
|
||||
points.push_back(mapped_point(x, tick, y, value));
|
||||
painter.polyline(points, state.pen);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user