Opt: improve adaptive-size rendering

This commit is contained in:
yuanyuanxiang
2026-06-17 22:14:22 +02:00
parent 851fed4739
commit 5b37df26fd
2 changed files with 155 additions and 26 deletions

View File

@@ -280,8 +280,16 @@ public:
BOOL m_bUseCustomCursor = TRUE; // 是否使用自定义光标
CRect m_CRect;
double m_wZoom=1, m_hZoom=1;
int m_offsetX=0, m_offsetY=0; // 自适应模式黑边偏移(像素)
bool m_bMouseTracking = false;
// 自适应黑边合成缓冲(按窗口尺寸缓存,避免每帧分配 GDI 资源)
HDC m_hComposeDC = NULL;
HBITMAP m_hComposeBmp = NULL;
HBITMAP m_hComposeOldBmp = NULL;
int m_nComposeCX = 0;
int m_nComposeCY = 0;
// ========== 局部放大功能 ==========
bool m_bZoomedIn = false; // 是否处于放大状态
CRect m_rcZoomSrc; // 放大区域(原图坐标)