Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
index e485fd614b..125ecc2e53 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java
@@ -1012,14 +1012,9 @@ public int getDeviceZoom() {
byte[] buffer = new byte [len];
OS.memmove (buffer, keyArray, len);
String type = new String(Converter.mbcsToWcs(null, buffer));
- if (i == monitor) {
- int index = type.indexOf(",");
- String height = type.substring((index + 1), (type.length() - 1));
- fontHeight = Integer.valueOf(height.trim());
- OS.g_free(keyArray);
- OS.g_variant_unref(iterValue);
- break;
- }
+ int index = type.indexOf(",");
+ String height = type.substring((index + 1), (type.length() - 1));
+ fontHeight = Math.max(fontHeight, Integer.valueOf(height.trim()));
OS.g_free(keyArray);
OS.g_variant_unref(iterValue);
}

Back to the top