diff options
author | nyamatongwe <devnull@localhost> | 2003-01-31 21:56:35 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-01-31 21:56:35 +0000 |
commit | 726d3ae2f2ae0c79d5215202d97310e26d00f022 (patch) | |
tree | 633ce248d6beceee0d0f8a262d473e6bfb6bdea4 | |
parent | 4b9a1b325213f66dec5aaeac22670829a689c342 (diff) | |
download | scintilla-mirror-726d3ae2f2ae0c79d5215202d97310e26d00f022.tar.gz |
Fixes to autocompletion pixmaps from Mauritius Thinnes.
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index a65ff4a9c..aa1a4d656 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -133,6 +133,7 @@ static void SetLogFont(LOGFONT &lf, const char *faceName, int characterSet, int lf.lfItalic = static_cast<BYTE>(italic ? 1 : 0); lf.lfCharSet = static_cast<BYTE>(characterSet); strncpy(lf.lfFaceName, faceName, sizeof(lf.lfFaceName)); + lf.lfQuality = NONANTIALIASED_QUALITY; } /** @@ -964,6 +965,7 @@ int ListBoxX::CaretFromEdge() { void ListBoxX::Clear() { ::SendMessage(lb, LB_RESETCONTENT, 0, 0); maxItemCharacters = 0; + ltt.Clear(); } void ListBoxX::Append(char *s, int type) { @@ -972,7 +974,7 @@ void ListBoxX::Append(char *s, int type) { if (maxItemCharacters < len) maxItemCharacters = len; int count = ::SendMessage(lb, LB_GETCOUNT, 0, 0); - ltt.Add(count, type); + ltt.Add(count-1, type); } int ListBoxX::Length() { |