diff options
author | nyamatongwe <unknown> | 2002-07-28 13:15:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-07-28 13:15:08 +0000 |
commit | 543cabf85847734882e600345c3e78c227ba4ebf (patch) | |
tree | 9b398c40ded0db8f5dd22c12eb3da08980781442 | |
parent | ae2e6e1e905413081c1cb32ece081d1416ae3f53 (diff) | |
download | scintilla-mirror-543cabf85847734882e600345c3e78c227ba4ebf.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-- | gtk/ScintillaGTK.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 9aecb5829..d3711dd63 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -601,7 +601,7 @@ bool ScintillaGTK::HaveMouseCapture() { // Redraw all of text area. This paint will not be abandoned. void ScintillaGTK::FullPaint() { paintState = painting; - rcPaint = GetTextRectangle(); + rcPaint = GetClientRectangle(); //Platform::DebugPrintf("ScintillaGTK::FullPaint %0d,%0d %0d,%0d\n", // rcPaint.left, rcPaint.top, rcPaint.right, rcPaint.bottom); paintingAllText = true; @@ -632,8 +632,8 @@ PRectangle ScintillaGTK::GetClientRectangle() { void ScintillaGTK::SyncPaint(PRectangle rc) { paintState = painting; rcPaint = rc; - PRectangle rcText = GetTextRectangle(); - paintingAllText = rcPaint.Contains(rcText); + PRectangle rcClient = GetClientRectangle(); + paintingAllText = rcPaint.Contains(rcClient); //Platform::DebugPrintf("ScintillaGTK::SyncPaint %0d,%0d %0d,%0d\n", // rcPaint.left, rcPaint.top, rcPaint.right, rcPaint.bottom); Surface *sw = Surface::Allocate(); @@ -1410,8 +1410,8 @@ gint ScintillaGTK::Expose(GtkWidget *, GdkEventExpose *ose, ScintillaGTK *sciThi sciThis->rcPaint.right = ose->area.x + ose->area.width; sciThis->rcPaint.bottom = ose->area.y + ose->area.height; - PRectangle rcText = sciThis->GetTextRectangle(); - sciThis->paintingAllText = sciThis->rcPaint.Contains(rcText); + PRectangle rcClient = sciThis->GetClientRectangle(); + sciThis->paintingAllText = sciThis->rcPaint.Contains(rcClient); Surface *surfaceWindow = Surface::Allocate(); if (surfaceWindow) { surfaceWindow->Init((PWidget(sciThis->wMain))->window); |