diff options
| author | nyamatongwe <unknown> | 2004-08-08 00:33:23 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2004-08-08 00:33:23 +0000 | 
| commit | 6cf668234ff7f4d2c8d4e84f248087c83d16913f (patch) | |
| tree | 340008139231ee1c12401a04eb69700f8c2eefcf /src | |
| parent | 476d6fc270323155507763b4ea7c5f58cb748332 (diff) | |
| download | scintilla-mirror-6cf668234ff7f4d2c8d4e84f248087c83d16913f.tar.gz | |
Patch from Niki Spahiev to use correct character set in calltips.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CallTip.cxx | 4 | ||||
| -rw-r--r-- | src/CallTip.h | 3 | ||||
| -rw-r--r-- | src/ScintillaBase.cxx | 11 | 
3 files changed, 10 insertions, 8 deletions
| diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 93e888d0e..003284c12 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -214,7 +214,7 @@ void CallTip::MouseClick(Point pt) {  PRectangle CallTip::CallTipStart(int pos, Point pt, const char *defn,                                   const char *faceName, int size, -                                 int codePage_, Window &wParent) { +                                 int codePage_, int characterSet, Window &wParent) {  	clickPlace = 0;  	if (val)  		delete []val; @@ -234,7 +234,7 @@ PRectangle CallTip::CallTipStart(int pos, Point pt, const char *defn,  	inCallTipMode = true;  	posStartCallTip = pos;  	int deviceHeight = surfaceMeasure->DeviceHeightFont(size); -	font.Create(faceName, SC_CHARSET_DEFAULT, deviceHeight, false, false); +	font.Create(faceName, characterSet, deviceHeight, false, false);  	// Look for multiple lines in the text  	// Only support \n here - simply means container must avoid \r!  	int numLines = 1; diff --git a/src/CallTip.h b/src/CallTip.h index ffaedb077..feff7ea0b 100644 --- a/src/CallTip.h +++ b/src/CallTip.h @@ -52,7 +52,8 @@ public:  	/// Setup the calltip and return a rectangle of the area required.  	PRectangle CallTipStart(int pos, Point pt, const char *defn, -		const char *faceName, int size, int codePage_, Window &wParent); +		const char *faceName, int size, int codePage_,  +		int characterSet, Window &wParent);  	void CallTipCancel(); diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 066569f1d..e67c03ac5 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -357,11 +357,12 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) {  	AutoCompleteCancel();  	pt.y += vs.lineHeight;  	PRectangle rc = ct.CallTipStart(currentPos, pt, -									defn, -									vs.styles[STYLE_DEFAULT].fontName, -									vs.styles[STYLE_DEFAULT].sizeZoomed, -									CodePage(), -									wMain); +		defn, +		vs.styles[STYLE_DEFAULT].fontName, +		vs.styles[STYLE_DEFAULT].sizeZoomed, +		CodePage(), +		vs.styles[STYLE_DEFAULT].characterSet, +		wMain);  	// If the call-tip window would be out of the client  	// space, adjust so it displays above the text.  	PRectangle rcClient = GetClientRectangle(); | 
