aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authororbitalquark <70453897+orbitalquark@users.noreply.github.com>2025-05-12 11:38:13 +1000
committerorbitalquark <70453897+orbitalquark@users.noreply.github.com>2025-05-12 11:38:13 +1000
commit140a921a133ee63337e8dfe1c7261b7eb86399e9 (patch)
tree219a6641ddd4fd117bc0b0fa2bb1876d39f4499e /src/ScintillaBase.cxx
parentda1240f14a3fda528e8776cc873d124b6c8703f4 (diff)
downloadscintilla-mirror-140a921a133ee63337e8dfe1c7261b7eb86399e9.tar.gz
Add SCI_AUTOC{G,S}ETIMAGESCALE and implement for Qt and GTK.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index a49cfab32..1f4c360da 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -296,6 +296,7 @@ void ScintillaBase::AutoCompleteStart(Sci::Position lenEntered, const char *list
vs.ElementColour(Element::ListSelected),
vs.ElementColour(Element::ListSelectedBack),
ac.options,
+ ac.imageScale,
};
int lineHeight;
@@ -972,6 +973,13 @@ sptr_t ScintillaBase::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
case Message::AutoCGetStyle:
return vs.autocStyle;
+ case Message::AutoCSetImageScale:
+ ac.imageScale = static_cast<float>(wParam) / 100.0f;
+ break;
+
+ case Message::AutoCGetImageScale:
+ return static_cast<int>(ac.imageScale * 100);
+
case Message::RegisterImage:
ac.lb->RegisterImage(static_cast<int>(wParam), ConstCharPtrFromSPtr(lParam));
break;