From 1dbe46cd9d0f181d08d5a69f72d8548628a13b9d Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期三, 16 七月 2025 17:13:50 +0800
Subject: [PATCH] 优化:显示在流程中解锁,并且把文件字符集统一替换成UTF-8(BOM)
---
EdgeInspector_App/InterfaceManager.h | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/EdgeInspector_App/InterfaceManager.h b/EdgeInspector_App/InterfaceManager.h
index 175d77f..275f6a1 100644
--- a/EdgeInspector_App/InterfaceManager.h
+++ b/EdgeInspector_App/InterfaceManager.h
@@ -1,4 +1,4 @@
-#pragma once
+锘�#pragma once
#include "Global_Define.h"
#include "EdgeInspector_AppView.h"
@@ -100,7 +100,7 @@
BOOL IsScanNow();
int LoadFullImage(CString strPath,int iSide,int nStartY = 0, CGlass_Data *pGlassData = NULL, const bool bIsDebugImg = true);
BOOL SaveFullImage(CString strPath,int iSide,CPoint ptStart,int nLineCnt);
- BOOL SaveFullImage2(CString strPath,LPBYTE lpOrigin,int nImgWidth,int nImgHeight,int iSide,int nStartY,int nQuality = 50);
+ BOOL SaveFullImageModern(CString strPath,LPBYTE lpOrigin,int nImgWidth,int nImgHeight,int iSide,int nStartY,int nQuality = 50);
LPBYTE GetGrabBuffer(DimensionDir eDir,int iVline);
BOOL SetLiveGrabCommand(DimensionDir eDir,BOOL bStop);
void WriteLogManager(TCHAR *str);
@@ -123,6 +123,11 @@
long long GetCurrentTimestamp();
+private:
+ CRITICAL_SECTION m_criticalSection;
+ inline void Lock() { ::InitializeCriticalSection(&m_criticalSection); }
+ inline void Unlock() { ::DeleteCriticalSection(&m_criticalSection); }
+
#if USE_WEBSOCKET
protected:
void CreateWebSocketClients(WebSocketClientPool** wsClients, CString cstrURI, int nThreadCount);
--
Gitblit v1.9.3