diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-20 16:25:35 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-20 16:25:35 +1100 |
commit | 434ea41aa400557964d73867008cfa8b1f64d8c4 (patch) | |
tree | 7a6981a28f521391a97cdbd4224fd81b2035bf24 /cocoa/ScintillaCocoa.mm | |
parent | 3d45c4bf974b6fdcce9712bbd3f0071a9618b89f (diff) | |
download | scintilla-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 'cocoa/ScintillaCocoa.mm')
-rw-r--r-- | cocoa/ScintillaCocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 54b809cd9..8e7c80260 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -847,7 +847,7 @@ sptr_t ScintillaCocoa::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lPar case SCI_SETBIDIRECTIONAL: bidirectional = static_cast<EditModel::Bidirectional>(wParam); // Invalidate all cached information including layout. - DropGraphics(true); + DropGraphics(); InvalidateStyleRedraw(); return 0; |