Skip to content

Commit ca67876

Browse files
rolfthiloveeclipse
authored andcommitted
Revert "Bug 575398 - CTabFolderRenderer: fix drawing the cross on Win32"
This reverts commit f902ddb. This commit triggered drawing issues with GDI+ on win32 causing tabs to disappear, see Bug 575873. Change-Id: I7ba84cacccb77d00098bfc26553cc006b23c474a Signed-off-by: Rolf Theunissen <[email protected]> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/185827 Tested-by: Andrey Loskutov <[email protected]> Reviewed-by: Andrey Loskutov <[email protected]>
1 parent afa4aef commit ca67876

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public class CTabFolderRenderer {
6060

6161
private Font chevronFont = null;
6262

63-
private boolean antiAlias = true;
64-
6563
//TOP_LEFT_CORNER_HILITE is laid out in reverse (ie. top to bottom)
6664
//so can fade in same direction as right swoop curve
6765
static final int[] TOP_LEFT_CORNER_HILITE = new int[] {5,2, 4,2, 3,3, 2,4, 2,5, 1,6};
@@ -873,13 +871,6 @@ void drawClose(GC gc, Rectangle closeRect, int closeImageState) {
873871
y += parent.onBottom ? -1 : 1;
874872
int originalLineWidth = gc.getLineWidth();
875873
Color originalForeground = gc.getForeground();
876-
if (antiAlias) {
877-
try {
878-
gc.setAntialias(SWT.ON);
879-
} catch (SWTException e) {
880-
antiAlias = false;
881-
}
882-
}
883874
switch (closeImageState & (SWT.HOT | SWT.SELECTED | SWT.BACKGROUND)) {
884875
case SWT.NONE: {
885876
drawCloseLines(gc, x, y , lineLength, false);

0 commit comments

Comments
 (0)