Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2013-12-18 14:43:38 -0500
committerBernd Hufmann2013-12-19 07:17:25 -0500
commit3ed1a084a76c5d28a936d279491f6aead0461cc6 (patch)
treea6325b8cde45d52c141480e8be747df90afac481
parent8a3617dad4f549e0094130a10511b434342b1d68 (diff)
downloadorg.eclipse.linuxtools-3ed1a084a76c5d28a936d279491f6aead0461cc6.tar.gz
org.eclipse.linuxtools-3ed1a084a76c5d28a936d279491f6aead0461cc6.tar.xz
org.eclipse.linuxtools-3ed1a084a76c5d28a936d279491f6aead0461cc6.zip
tmf: remove setting of anti-aliasing in histogram
The setting of anti-aliasing in histogram paintContro() is triggering another redraw of the histogram. This endless redraw will make the UI unresponsive. It seems only to happen on some Linux versions. Until we figured-out the root cause it's better to remove the setting of anti-aliasing. Change-Id: I38b6f5062869a4ecaa32ad03d9883736d9475cec Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com> Reviewed-on: https://git.eclipse.org/r/20006 Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com> IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> IP-Clean: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Hudson CI
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java
index d47a9f80e6..c311272d3c 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/Histogram.java
@@ -690,10 +690,6 @@ public abstract class Histogram implements ControlListener, PaintListener, KeyLi
final int width = image.getBounds().width;
final int height = image.getBounds().height;
- // Turn off anti-aliasing
- int aliasing = imageGC.getAntialias();
- imageGC.setAntialias(SWT.OFF);
-
// Clear the drawing area
imageGC.setBackground(fBackgroundColor);
imageGC.fillRectangle(0, 0, image.getBounds().width + 1, image.getBounds().height + 1);
@@ -752,9 +748,6 @@ public abstract class Histogram implements ControlListener, PaintListener, KeyLi
imageGC.setBackground(fFillColor);
imageGC.fillRectangle(delimiterIndex + 1, 0, width - (delimiterIndex + 1), height);
- // Restore anti-aliasing
- imageGC.setAntialias(aliasing);
-
} catch (final Exception e) {
// Do nothing
}

Back to the top