aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-20 16:25:35 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-20 16:25:35 +1100
commit434ea41aa400557964d73867008cfa8b1f64d8c4 (patch)
tree7a6981a28f521391a97cdbd4224fd81b2035bf24 /win32/ScintillaWin.cxx
parent3d45c4bf974b6fdcce9712bbd3f0071a9618b89f (diff)
downloadscintilla-mirror-434ea41aa400557964d73867008cfa8b1f64d8c4.tar.gz
Use Surface::AllocatePixMap instead of changing an existing surface with
InitPixMap. Changed DropGraphics from releasing surfaces to deleting them. This simplifies code and the added cost of allocating a new Surface is small.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 2b6748fb0..44d08af71 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -670,7 +670,7 @@ void ScintillaWin::EnsureRenderTarget(HDC hdc) {
#endif
// Pixmaps were created to be compatible with previous render target so
// need to be recreated.
- DropGraphics(false);
+ DropGraphics();
}
if ((technology == SC_TECHNOLOGY_DIRECTWRITEDC) && pRenderTarget) {
@@ -1833,7 +1833,7 @@ sptr_t ScintillaWin::SciMessage(unsigned int iMessage, uptr_t wParam, sptr_t lPa
#endif
technology = technologyNew;
// Invalidate all cached information including layout.
- DropGraphics(true);
+ DropGraphics();
InvalidateStyleRedraw();
}
}
@@ -1846,7 +1846,7 @@ sptr_t ScintillaWin::SciMessage(unsigned int iMessage, uptr_t wParam, sptr_t lPa
bidirectional = static_cast<EditModel::Bidirectional>(wParam);
}
// Invalidate all cached information including layout.
- DropGraphics(true);
+ DropGraphics();
InvalidateStyleRedraw();
break;