From 9b2e7cdd1d3bf2e10135c675a6b5b176a57747bf Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期三, 04 二月 2026 10:51:46 +0800
Subject: [PATCH] 1.完善连接示意图。

---
 SourceCode/Bond/Servo/CPageGraph1.cpp |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/SourceCode/Bond/Servo/CPageGraph1.cpp b/SourceCode/Bond/Servo/CPageGraph1.cpp
index 2427181..b2d932a 100644
--- a/SourceCode/Bond/Servo/CPageGraph1.cpp
+++ b/SourceCode/Bond/Servo/CPageGraph1.cpp
@@ -407,10 +407,14 @@
 	int boxSize = GetPrivateProfileIntA("Graph1", "BoxSize", 56, iniPath.c_str());
 	if (boxSize < 40) boxSize = 40;
 	if (boxSize > 80) boxSize = 80;
-	int slotSize = GetPrivateProfileIntA("Graph1", "SlotSize", 6, iniPath.c_str());
-	if (slotSize < 2) slotSize = 2;
-	if (slotSize > 12) slotSize = 12;
-	m_pGraph->SetSlotBarSize(slotSize);
+	int slotSizeDefault = GetPrivateProfileIntA("Graph1", "SlotSize", 6, iniPath.c_str());
+	int slotSize8 = GetPrivateProfileIntA("Graph1", "SlotSize8", slotSizeDefault, iniPath.c_str());
+	int slotSizeOther = GetPrivateProfileIntA("Graph1", "SlotSizeOther", slotSizeDefault, iniPath.c_str());
+	if (slotSize8 < 2) slotSize8 = 2;
+	if (slotSize8 > 12) slotSize8 = 12;
+	if (slotSizeOther < 2) slotSizeOther = 2;
+	if (slotSizeOther > 12) slotSizeOther = 12;
+	m_pGraph->SetSlotBarSizeByCount(slotSize8, slotSizeOther);
 	int armBoxSize = GetPrivateProfileIntA("Graph1", "ArmBoxSize", boxSize, iniPath.c_str());
 	if (armBoxSize < 30) armBoxSize = 30;
 	if (armBoxSize > 80) armBoxSize = 80;

--
Gitblit v1.9.3