diff options
author | Silenio Quarti | 2012-10-25 15:20:17 +0000 |
---|---|---|
committer | Silenio Quarti | 2012-10-25 15:20:17 +0000 |
commit | 4de42eea287c8825d0a8fcad58d1afe3cfc7c290 (patch) | |
tree | 3241675820fd1a5e557dd5678132ab95c888226e | |
parent | cad161b601904ce31d625ed62fb14d925e12dcbf (diff) | |
download | eclipse.platform.swt-4de42eea287c8825d0a8fcad58d1afe3cfc7c290.tar.gz eclipse.platform.swt-4de42eea287c8825d0a8fcad58d1afe3cfc7c290.tar.xz eclipse.platform.swt-4de42eea287c8825d0a8fcad58d1afe3cfc7c290.zip |
Bug 392700 - Bad scrolling in editor (N20121022-1000)
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java index be7fa652aa..e8c43471cc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Canvas.java @@ -351,19 +351,10 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b // GC gc = new GC (this); // gc.copyArea (x, y, width, height, destX, destY); // gc.dispose (); - if (OS.USE_CAIRO) { - OS.gdk_window_invalidate_region (window, copyRegion, true); - long /*int*/ cairo = OS.gdk_cairo_create (window); - OS.gdk_cairo_set_source_window (cairo, window, 0, 0); - Cairo.cairo_rectangle (cairo, copyRect.x + deltaX, copyRect.y + deltaY, copyRect.width, copyRect.height); - Cairo.cairo_fill (cairo); - Cairo.cairo_destroy (cairo); - } else { - long /*int*/ gdkGC = OS.gdk_gc_new (window); - OS.gdk_gc_set_exposures (gdkGC, true); - OS.gdk_draw_drawable (window, gdkGC, window, copyRect.x, copyRect.y, copyRect.x + deltaX, copyRect.y + deltaY, copyRect.width, copyRect.height); - OS.g_object_unref (gdkGC); - } + long /*int*/ gdkGC = OS.gdk_gc_new (window); + OS.gdk_gc_set_exposures (gdkGC, true); + OS.gdk_draw_drawable (window, gdkGC, window, copyRect.x, copyRect.y, copyRect.x + deltaX, copyRect.y + deltaY, copyRect.width, copyRect.height); + OS.g_object_unref (gdkGC); boolean disjoint = (destX + width < x) || (x + width < destX) || (destY + height < y) || (y + height < destY); if (disjoint) { GdkRectangle rect = new GdkRectangle (); |