From 66a542ff4f184ef10990c2dbaa0877cfe3a493bc Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Fri, 4 Mar 2022 08:17:07 +1100 Subject: Feature [feature-requests:#1432] Simplify CallTipStart by passing in surface and font. This allows customization of surface creation and ensures surface and font for calltip are the same as used in main window. --- src/CallTip.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/CallTip.h') diff --git a/src/CallTip.h b/src/CallTip.h index dc1071baa..3f0e4f801 100644 --- a/src/CallTip.h +++ b/src/CallTip.h @@ -71,9 +71,7 @@ public: /// Setup the calltip and return a rectangle of the area required. PRectangle CallTipStart(Sci::Position pos, Point pt, int textHeight, const char *defn, - const char *faceName, int size, int codePage_, - Scintilla::CharacterSet characterSet, Scintilla::Technology technology, const char *localeName, - const Window &wParent); + int codePage_, Surface *surfaceMeasure, std::shared_ptr font_); void CallTipCancel() noexcept; -- cgit v1.2.3