aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-26 16:20:39 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-26 16:20:39 +1000
commit8bf2761612f478604b92e06a10df872b1b48d775 (patch)
tree680df5ba80b7b3672a3c547b413945037695864d /win32
parentbaff93d6117396c57dbffbd28e69fde92712a88a (diff)
downloadscintilla-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.cxx4
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;
}