Commit eb9fb223 authored by Robert Sprowson's avatar Robert Sprowson

Move former ControlList_Interlaced item into SyncPol flags

Requires Kernel-6_21.
parent b613fdbb
......@@ -631,6 +631,10 @@ static int build_a_vidclist(VIDCListRef vp, ModeDescriptionRef mp, const PixelFo
}
vp->pixelrate = mp->definition.timings.pixel_khz;
vp->syncpol = mp->definition.timings.syncpol;
if (mp->definition.timings.interlaced)
{
vp->syncpol |= SyncPol_Interlace | SyncPol_InterlaceFields;
}
/* Only specify ModeFlags & NColour if necessary? */
if (!is_old_format(pf))
......@@ -680,13 +684,6 @@ static int build_a_vidclist(VIDCListRef vp, ModeDescriptionRef mp, const PixelFo
ctrllistpos++;
}
if (mp->definition.timings.interlaced)
{
vp->vcparam[ctrllistpos].index = ControlList_Interlaced;
vp->vcparam[ctrllistpos].value = 1;
ctrllistpos++;
}
if (current_monitor->output_format != -1)
{
vp->vcparam[ctrllistpos].index = ControlList_OutputFormat;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment