diff options
| author | nyamatongwe <devnull@localhost> | 2011-09-09 16:59:38 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2011-09-09 16:59:38 +1000 |
| commit | e00160f45844f28985e11540aa62a96a2fcb0146 (patch) | |
| tree | 4f4c1f6692ed01d6f6c4f5361935a07328158131 /src/CallTip.cxx | |
| parent | ec3e2ca261c8a98fd0786c151a737ad12ed637f4 (diff) | |
| parent | 8ab9f0c333bb0c9ef944d91d940c516b65b0384e (diff) | |
| download | scintilla-mirror-e00160f45844f28985e11540aa62a96a2fcb0146.tar.gz | |
Merge with main repository.
Diffstat (limited to 'src/CallTip.cxx')
| -rw-r--r-- | src/CallTip.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index cdc30fcbc..0e1e80cc1 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -255,14 +255,15 @@ void CallTip::MouseClick(Point pt) { PRectangle CallTip::CallTipStart(int pos, Point pt, const char *defn, const char *faceName, int size, - int codePage_, int characterSet, Window &wParent) { + int codePage_, int characterSet, + int technology, Window &wParent) { clickPlace = 0; delete []val; val = 0; val = new char[strlen(defn) + 1]; strcpy(val, defn); codePage = codePage_; - Surface *surfaceMeasure = Surface::Allocate(); + Surface *surfaceMeasure = Surface::Allocate(technology); if (!surfaceMeasure) return PRectangle(); surfaceMeasure->Init(wParent.GetID()); @@ -273,7 +274,8 @@ PRectangle CallTip::CallTipStart(int pos, Point pt, const char *defn, inCallTipMode = true; posStartCallTip = pos; int deviceHeight = surfaceMeasure->DeviceHeightFont(size); - font.Create(faceName, characterSet, deviceHeight, false, false); + FontParameters fp(faceName, deviceHeight / SC_FONT_SIZE_MULTIPLIER, SC_WEIGHT_NORMAL, false, 0, technology, characterSet); + font.Create(fp); // Look for multiple lines in the text // Only support \n here - simply means container must avoid \r! int numLines = 1; |
