From ed5b48019fb8e95c305a0e5c25bde50ebc353b25 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Tue, 8 Sep 2020 22:18:52 +0300 Subject: Add @Deprecated annotation to win32 too. It is already there for gtk/cocoa. Change-Id: I3975b87a077021b56c53695f8a1f6b0f3be29765 Signed-off-by: Alexander Kurtakov --- .../Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java index 5bca68c128..debee63294 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/FontMetrics.java @@ -116,6 +116,7 @@ public double getAverageCharacterWidth() { * @return the average character width of the font * @deprecated Use getAverageCharacterWidth() instead */ +@Deprecated public int getAverageCharWidth() { return DPIUtil.autoScaleDown(handle.tmAveCharWidth); } -- cgit v1.2.3