--- a/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.c Fri Sep 02 10:31:49 2016 +0300
+++ b/jdk/src/java.desktop/unix/native/common/awt/systemscale/systemScale.c Fri Sep 02 10:36:55 2016 +0300
@@ -148,7 +148,7 @@
void *scale = fp_g_variant_get_child_value(entry, 1);
if (screen && scale) {
char *name = fp_g_variant_get_string(screen, NULL);
- if (name && strcmp(name, output_name)) {
+ if (name && !strcmp(name, output_name)) {
result = fp_g_variant_get_int32(scale) / 8.;
}
fp_g_variant_unref(screen);