View | Details | Raw Unified | Return to bug 59528 | Differences between
and this patch

Collapse All | Expand All

(-)Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java (+5 lines)
Lines 3007-3010 Link Here
3007
	int /*long*/ window = paintWindow ();
3007
	int /*long*/ window = paintWindow ();
3008
	OS.gdk_window_process_updates (window, all);
3008
	OS.gdk_window_process_updates (window, all);
3009
}
3009
}
3010
3011
public void setNoBackground () {
3012
	int /*long*/ window = paintWindow ();
3013
	OS.gdk_window_set_back_pixmap (window, 0, false);
3014
}
3010
}
3015
}
(-)Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java (+1 lines)
Lines 5038-5043 Link Here
5038
 * @param event paint event
5038
 * @param event paint event
5039
 */
5039
 */
5040
void handlePaint(Event event) {
5040
void handlePaint(Event event) {
5041
	setNoBackground();
5041
	int startLine = Math.max(0, (event.y - topMargin + verticalScrollOffset) / lineHeight);
5042
	int startLine = Math.max(0, (event.y - topMargin + verticalScrollOffset) / lineHeight);
5042
	int paintYFromTopLine = (startLine - topIndex) * lineHeight;
5043
	int paintYFromTopLine = (startLine - topIndex) * lineHeight;
5043
	int topLineOffset = topIndex * lineHeight - verticalScrollOffset;
5044
	int topLineOffset = topIndex * lineHeight - verticalScrollOffset;

Return to bug 59528