diff options
author | Alexander Kurtakov <akurtako@redhat.com> | 2012-11-14 11:44:06 +0200 |
---|---|---|
committer | Alexander Kurtakov <akurtako@redhat.com> | 2012-11-14 11:44:06 +0200 |
commit | 7d46d43cd21b835d179c72bde7bab59e61f13803 (patch) | |
tree | bde3cb0bec6bf2bc3d791cce062b69b8f96b1249 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java | |
parent | f0c3863919f76488edb06642c9a462968a147799 (diff) | |
download | eclipse.platform.swt-7d46d43cd21b835d179c72bde7bab59e61f13803.tar.gz eclipse.platform.swt-7d46d43cd21b835d179c72bde7bab59e61f13803.tar.xz eclipse.platform.swt-7d46d43cd21b835d179c72bde7bab59e61f13803.zip |
Bug 393856 - Consider using pango_layout_get_pixel_size
Binding for the function added and used where possible. This allows to
not convert them after fetching via OS.PANGO_PIXELS calls.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java index 1f7c385b8d..bf42c7e6da 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java @@ -3015,9 +3015,9 @@ void initCairo() { void computeStringSize() { int[] width = new int[1], height = new int[1]; - OS.pango_layout_get_size(data.layout, width, height); - data.stringHeight = OS.PANGO_PIXELS(height[0]); - data.stringWidth = OS.PANGO_PIXELS(width[0]); + OS.pango_layout_get_pixel_size(data.layout, width, height); + data.stringHeight = height[0]; + data.stringWidth = width[0]; } /** |