void ThermalAssistantWindow::OnPaintBuffer(Canvas &canvas) { PaintRadarBackground(canvas); if (!derived.circling) { PaintNotCircling(canvas); return; } PaintRadarPlane(canvas); PaintPoints(canvas); PaintAdvisor(canvas); }
void ThermalAssistantWindow::OnPaintBuffer(Canvas &canvas) { fixed max_lift = ceil(CalculateMaxLift()); PaintRadarBackground(canvas, max_lift); if (!circling.circling) { PaintNotCircling(canvas); return; } LiftPoints lift_points; CalculateLiftPoints(lift_points, max_lift); PaintPoints(canvas, lift_points); PaintAdvisor(canvas, lift_points); PaintRadarPlane(canvas); }