aboutsummaryrefslogtreecommitdiffstats
path: root/parse-base-block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parse-base-block.cpp')
-rw-r--r--parse-base-block.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/parse-base-block.cpp b/parse-base-block.cpp
index 37da226..f18b495 100644
--- a/parse-base-block.cpp
+++ b/parse-base-block.cpp
@@ -714,6 +714,18 @@ void edid_state::edid_cvt_mode(unsigned refresh, struct timings &t)
t.interlaced = false;
}
+timings edid_state::calc_cvt_mode(unsigned refresh, unsigned hact, unsigned vact, unsigned rb)
+{
+ timings t = {};
+
+ t.hact = hact;
+ t.vact = vact;
+ t.rb = rb;
+ calc_ratio(&t);
+ edid_cvt_mode(refresh, t);
+ return t;
+}
+
void edid_state::detailed_cvt_descriptor(const char *prefix, const unsigned char *x, bool first)
{
static const unsigned char empty[3] = { 0, 0, 0 };

Privacy Policy