aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma/CRTCInformation.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libgamma/CRTCInformation.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libgamma/CRTCInformation.java b/src/libgamma/CRTCInformation.java
index 307ec8b..9da17f7 100644
--- a/src/libgamma/CRTCInformation.java
+++ b/src/libgamma/CRTCInformation.java
@@ -203,6 +203,18 @@ public class CRTCInformation
this.connector_type = ConnectorType.VALUES[ints[22]];
this.connector_type_error = make_error(ints[23]);
this.gamma_error = make_error(ints[24]);
+
+ this.has_error = (this.edid_error != null)
+ || (this.width_mm_error != null)
+ || (this.height_mm_error != null)
+ || (this.width_mm_edid_error != null)
+ || (this.height_mm_edid_error != null)
+ || (this.gamma_size_error != null)
+ || (this.gamma_depth_error != null)
+ || (this.gamma_support_error != null)
+ || (this.subpixel_order_error != null)
+ || (this.connector_name_error != null)
+ || (this.connector_type_error != null);
}
@@ -453,6 +465,12 @@ public class CRTCInformation
public final LibgammaException gamma_error;
+ /**
+ * Whether any of the error fields are non-{@code null}.
+ */
+ public final boolean has_error;
+
+
/**
* Convert a raw representation of an EDID to a lowercase hexadecimal representation.