diff options
author | Neil <nyamatongwe@gmail.com> | 2021-04-26 16:20:39 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-04-26 16:20:39 +1000 |
commit | 8bf2761612f478604b92e06a10df872b1b48d775 (patch) | |
tree | 680df5ba80b7b3672a3c547b413945037695864d /win32 | |
parent | baff93d6117396c57dbffbd28e69fde92712a88a (diff) | |
download | scintilla-mirror-8bf2761612f478604b92e06a10df872b1b48d775.tar.gz |
Extract related groups of fields out of ViewStyle into new structs.
Size of ViewStyle makes it more difficult to understand and this helps a bit.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 8ffc14d5a..4888c286e 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -3398,7 +3398,7 @@ bool ScintillaWin::Unregister() noexcept { bool ScintillaWin::HasCaretSizeChanged() const noexcept { if ( - ( (0 != vs.caretWidth) && (sysCaretWidth != vs.caretWidth) ) + ( (0 != vs.caret.width) && (sysCaretWidth != vs.caret.width) ) || ((0 != vs.lineHeight) && (sysCaretHeight != vs.lineHeight)) ) { return true; @@ -3407,7 +3407,7 @@ bool ScintillaWin::HasCaretSizeChanged() const noexcept { } BOOL ScintillaWin::CreateSystemCaret() { - sysCaretWidth = vs.caretWidth; + sysCaretWidth = vs.caret.width; if (0 == sysCaretWidth) { sysCaretWidth = 1; } |