From 001ab5fbd04863f2a9cfaf710c168f0093f626dd Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 28 Jul 2002 13:22:18 +0000 Subject: Full paint now paints all of the margins as well. Required to simplify handling of abandoned paints where styling causes fold markers to change. --- win32/ScintillaWin.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'win32') 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()); -- cgit v1.2.3