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 ...@@ -631,6 +631,10 @@ static int build_a_vidclist(VIDCListRef vp, ModeDescriptionRef mp, const PixelFo
} }
vp->pixelrate = mp->definition.timings.pixel_khz; vp->pixelrate = mp->definition.timings.pixel_khz;
vp->syncpol = mp->definition.timings.syncpol; vp->syncpol = mp->definition.timings.syncpol;
if (mp->definition.timings.interlaced)
{
vp->syncpol |= SyncPol_Interlace | SyncPol_InterlaceFields;
}
/* Only specify ModeFlags & NColour if necessary? */ /* Only specify ModeFlags & NColour if necessary? */
if (!is_old_format(pf)) if (!is_old_format(pf))
...@@ -680,13 +684,6 @@ static int build_a_vidclist(VIDCListRef vp, ModeDescriptionRef mp, const PixelFo ...@@ -680,13 +684,6 @@ static int build_a_vidclist(VIDCListRef vp, ModeDescriptionRef mp, const PixelFo
ctrllistpos++; ctrllistpos++;
} }
if (mp->definition.timings.interlaced)
{
vp->vcparam[ctrllistpos].index = ControlList_Interlaced;
vp->vcparam[ctrllistpos].value = 1;
ctrllistpos++;
}
if (current_monitor->output_format != -1) if (current_monitor->output_format != -1)
{ {
vp->vcparam[ctrllistpos].index = ControlList_OutputFormat; 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