• R/O
  • SSH
  • HTTPS

tortoisesvn: Commit


Commit MetaInfo

Revisão29089 (tree)
Hora2021-02-27 02:39:36
Autorstefankueng

Mensagem de Log

set a clipping region when drawing line text

Mudança Sumário

Diff

--- trunk/src/TortoiseMerge/BaseView.cpp (revision 29088)
+++ trunk/src/TortoiseMerge/BaseView.cpp (revision 29089)
@@ -1,6 +1,6 @@
11 // TortoiseMerge - a Diff/Patch program
22
3-// Copyright (C) 2003-2020 - TortoiseSVN
3+// Copyright (C) 2003-2021 - TortoiseSVN
44 // Copyright (C) 2019 - TortoiseGit
55
66 // This program is free software; you can redistribute it and/or
@@ -32,6 +32,7 @@
3232 #include "DPIAware.h"
3333 #include "Theme.h"
3434 #include "DarkModeHelper.h"
35+#include "OnOutOfScope.h"
3536
3637 // Note about lines:
3738 // We use three different kind of lines here:
@@ -1784,6 +1785,10 @@
17841785 int nViewLine = GetViewLineForScreen(nLineIndex);
17851786 ASSERT(m_pViewData && (nViewLine < m_pViewData->GetCount()));
17861787
1788+ CRgn rgn;
1789+ rgn.CreateRectRgn(rc.left, rc.top, rc.right, rc.bottom);
1790+ pDC->SelectClipRgn(&rgn);
1791+ OnOutOfScope(pDC->SelectClipRgn(nullptr));
17871792 LineColors lineCols = GetLineColors(nViewLine);
17881793
17891794 CString sViewLine = GetViewLineChars(nViewLine);
Show on old repository browser