aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-07-28 13:22:18 +0000
committernyamatongwe <devnull@localhost>2002-07-28 13:22:18 +0000
commit001ab5fbd04863f2a9cfaf710c168f0093f626dd (patch)
treed2b53d03835d5a178821c03bdbbfc62d3dda0a5f
parent949fe42e1c4ef53901beb134f508af75c1d06ef0 (diff)
downloadscintilla-mirror-001ab5fbd04863f2a9cfaf710c168f0093f626dd.tar.gz
Full paint now paints all of the margins as well. Required to simplify
handling of abandoned paints where styling causes fold markers to change.
-rw-r--r--win32/ScintillaWin.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 9476b93bd..c732ea873 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -379,8 +379,8 @@ LRESULT ScintillaWin::WndPaint(uptr_t wParam) {
AutoSurface surfaceWindow(pps->hdc, IsUnicodeMode());
if (surfaceWindow) {
rcPaint = PRectangle(pps->rcPaint.left, pps->rcPaint.top, pps->rcPaint.right, pps->rcPaint.bottom);
- PRectangle rcText = GetTextRectangle();
- paintingAllText = rcPaint.Contains(rcText);
+ PRectangle rcClient = GetClientRectangle();
+ paintingAllText = rcPaint.Contains(rcClient);
if (paintingAllText) {
//Platform::DebugPrintf("Performing full text paint\n");
} else {
@@ -1446,6 +1446,7 @@ void ScintillaWin::ImeEndComposition() {
}
void ScintillaWin::AddCharBytes(char b0, char b1) {
+
int inputCodePage = InputCodePage();
if (inputCodePage && IsUnicodeMode()) {
char utfval[4]="\0\0\0";
@@ -1593,7 +1594,7 @@ void ScintillaWin::RealizeWindowPalette(bool inBackGround) {
*/
void ScintillaWin::FullPaint() {
paintState = painting;
- rcPaint = GetTextRectangle();
+ rcPaint = GetClientRectangle();
paintingAllText = true;
HDC hdc = ::GetDC(MainHWND());
AutoSurface surfaceWindow(hdc, IsUnicodeMode());