aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgamma/CRTCInformation.java
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-04 09:25:01 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-04 09:25:01 +0200
commit8c72d071d453f95ba5fba8e2a35bd332ae6ec453 (patch)
tree6e944b88c03bc498458c8820bf9ff22229d7211d /src/libgamma/CRTCInformation.java
parentadd behex and unhex (diff)
downloadjlibgamma-8c72d071d453f95ba5fba8e2a35bd332ae6ec453.tar.gz
jlibgamma-8c72d071d453f95ba5fba8e2a35bd332ae6ec453.tar.bz2
jlibgamma-8c72d071d453f95ba5fba8e2a35bd332ae6ec453.tar.xz
add states
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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.