aboutsummaryrefslogtreecommitdiffstats
path: root/edid-decode.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-02-25 11:38:08 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-02-25 11:38:08 +0100
commitf40dfc0427c57bc5c779b4734b739ff74ecc25fa (patch)
tree545b80d9dc0db099d885bde87429c19a84ddf1f0 /edid-decode.cpp
parent4204d568379a6482ffb4258e4b7aa00470a247c5 (diff)
edid-decode: introduce RB_NONE, rename RB_FLAG to RB_ALT
This is consistent with the other code. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'edid-decode.cpp')
-rw-r--r--edid-decode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/edid-decode.cpp b/edid-decode.cpp
index 1470406..78119ae 100644
--- a/edid-decode.cpp
+++ b/edid-decode.cpp
@@ -502,9 +502,9 @@ bool edid_state::print_timings(const char *prefix, const struct timings *t,
double refresh = (double)t->pixclk_khz * 1000.0 / (htotal * vtotal);
std::string s;
- unsigned rb = t->rb & ~RB_FLAG;
+ unsigned rb = t->rb & ~RB_ALT;
if (rb) {
- bool alt = t->rb & RB_FLAG;
+ bool alt = t->rb & RB_ALT;
s = "RB";
// Mark RB_CVT_V3 as preliminary since CVT 1.3 has not been
// released yet.
@@ -1309,7 +1309,7 @@ static void parse_cvt(char *optarg)
{
unsigned w = 0, h = 0;
double fps = 0;
- unsigned rb = 0;
+ unsigned rb = RB_NONE;
bool interlaced = false;
bool alt = false;
bool overscan = false;

Privacy Policy