From 161aee943eb12aa3cb8e106d5640c58432b6117f Mon Sep 17 00:00:00 2001 From: Lakshmi Shanmugam Date: Tue, 10 Jul 2018 05:54:30 -0500 Subject: Bug 534977: [StyledText] Bad renderer with setStyleRange & gc draw in a paint event This reverts commit bb1ea18b584ec1a364834b3fa0ae316c1f8453a1 for "Bug 366471: [Cocoa] Slow scrolling in editor on Mac OS X" This reverts the removal of the call to runPaint() in display.readAndDispatch(), the setNeedsDisplay and setNeedsDisplayInRect Change-Id: I95d4c967eb84f68cad0270b3254434bbc11418ce --- .../Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse') diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index 14726feb9f..3ab61a3d9d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -748,6 +748,8 @@ public static final native long /*int*/ CALLBACK_setFrameOrigin_(long /*int*/ fu public static final native long /*int*/ CALLBACK_setFrameSize_(long /*int*/ func); /** @method callback_types=void;id;SEL;id;NSRange;,callback_flags=none;none;none;none;struct; */ public static final native long /*int*/ CALLBACK_setMarkedText_selectedRange_(long /*int*/ func); +/** @method callback_types=void;id;SEL;NSRect;,callback_flags=none;none;none;struct; */ +public static final native long /*int*/ CALLBACK_setNeedsDisplayInRect_(long /*int*/ func); /** @method callback_types=BOOL;id;SEL;NSRange;NSString*;,callback_flags=none;none;none;struct;none; */ public static final native long /*int*/ CALLBACK_shouldChangeTextInRange_replacementString_(long /*int*/ func); /** @method callback_types=NSSize;id;SEL;BOOL;,callback_flags=struct;none;none;none; */ -- cgit v1.2.3