|
42 | 42 | import org.eclipse.swt.widgets.Control;
|
43 | 43 | import org.eclipse.swt.widgets.Display;
|
44 | 44 |
|
45 |
| -import org.eclipse.core.runtime.Platform.OS; |
46 |
| - |
47 | 45 | import org.eclipse.jface.text.BadLocationException;
|
48 | 46 | import org.eclipse.jface.text.IDocument;
|
49 | 47 | import org.eclipse.jface.text.IRegion;
|
@@ -697,17 +695,12 @@ private void doubleBufferPaint(GC dest) {
|
697 | 695 | }
|
698 | 696 |
|
699 | 697 | private void newFullBufferImage(ILineRange visibleLines, Point size) {
|
700 |
| - if (OS.isLinux()) { |
701 |
| - fBuffer= new Image(fCanvas.getDisplay(), size.x, size.y); |
702 |
| - doPaint(visibleLines, size); |
703 |
| - } else { |
704 |
| - ImageGcDrawer imageGcDrawer= (gc, imageWidth, imageHeight) -> { |
705 |
| - // We redraw everything; paint directly into the buffer |
706 |
| - initializeGC(gc, 0, 0, imageWidth, imageHeight); |
707 |
| - doPaint(gc, visibleLines); |
708 |
| - }; |
709 |
| - fBuffer= new Image(fCanvas.getDisplay(), imageGcDrawer, size.x, size.y); |
710 |
| - } |
| 698 | + ImageGcDrawer imageGcDrawer= (gc, imageWidth, imageHeight) -> { |
| 699 | + // We redraw everything; paint directly into the buffer |
| 700 | + initializeGC(gc, 0, 0, imageWidth, imageHeight); |
| 701 | + doPaint(gc, visibleLines); |
| 702 | + }; |
| 703 | + fBuffer= new Image(fCanvas.getDisplay(), imageGcDrawer, size.x, size.y); |
711 | 704 | }
|
712 | 705 |
|
713 | 706 | private void doPaint(ILineRange visibleLines, Point size) {
|
|
0 commit comments