summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
index 20f61362f0..8b06182be9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/GC.java
@@ -772,16 +772,14 @@ public void drawArc(int x, int y, int width, int height, int startAngle, int arc
public void drawFocus(int x, int y, int width, int height) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (data.updateClip) setCGClipping();
- if (OS.VERSION >= 0x1030) {
- int[] metric = new int[1];
- OS.GetThemeMetric(OS.kThemeMetricFocusRectOutset, metric);
- CGRect rect = new CGRect ();
- rect.x = x + metric[0];
- rect.y = y + metric[0];
- rect.width = width - metric[0] * 2;
- rect.height = height - metric[0] * 2;
- OS.HIThemeDrawFocusRect(rect, true, handle, OS.kHIThemeOrientationNormal);
- }
+ int[] metric = new int[1];
+ OS.GetThemeMetric(OS.kThemeMetricFocusRectOutset, metric);
+ CGRect rect = new CGRect ();
+ rect.x = x + metric[0];
+ rect.y = y + metric[0];
+ rect.width = width - metric[0] * 2;
+ rect.height = height - metric[0] * 2;
+ OS.HIThemeDrawFocusRect(rect, true, handle, OS.kHIThemeOrientationNormal);
flush();
}