diff options
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/ScintillaCocoa.h | 2 | ||||
| -rw-r--r-- | cocoa/ScintillaCocoa.mm | 22 | 
2 files changed, 24 insertions, 0 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h index 8d182e866..358019b46 100644 --- a/cocoa/ScintillaCocoa.h +++ b/cocoa/ScintillaCocoa.h @@ -114,6 +114,8 @@ protected:    Point GetVisibleOriginInMain();    PRectangle GetClientRectangle();    Point ConvertPoint(NSPoint point); +  virtual void RedrawRect(PRectangle rc); +  virtual void Redraw();    virtual void Initialise();    virtual void Finalise(); diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index 7e2c00ebb..e74beffdc 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -729,6 +729,28 @@ Scintilla::Point ScintillaCocoa::ConvertPoint(NSPoint point)  //--------------------------------------------------------------------------------------------------  /** + * Do not clip like superclass as Cocoa is not reporting all of prepared area. + */ +void ScintillaCocoa::RedrawRect(PRectangle rc) +{ +  if (!rc.Empty()) +    wMain.InvalidateRectangle(rc); +} + +//-------------------------------------------------------------------------------------------------- + +/** + * Ensure all of prepared content is also redrawn. + */ +void ScintillaCocoa::Redraw() +{ +  wMargin.InvalidateAll(); +  wMain.InvalidateAll(); +} + +//-------------------------------------------------------------------------------------------------- + +/**   * A function to directly execute code that would usually go the long way via window messages.   * However this is a Windows metaphor and not used here, hence we just call our fake   * window proc. The given parameters directly reflect the message parameters used on Windows.  | 
