From 8bf2761612f478604b92e06a10df872b1b48d775 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 26 Apr 2021 16:20:39 +1000 Subject: 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. --- win32/ScintillaWin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32') 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; } -- cgit v1.2.3