On 13/02/2023 08:09, Da Xue wrote:

    -       if (mode->hdisplay < 640 || mode->hdisplay > 1920)
    +       if (mode->hdisplay < 480 || mode->hdisplay > 1920)
                     return MODE_BAD_HVALUE;

    -       if (mode->vdisplay < 480 || mode->vdisplay > 1200)
    +       if (mode->vdisplay < 480 || mode->vdisplay > 1920)
                     return MODE_BAD_VVALUE;

Should these be lowered to 400 instead of 480?

If you want to support 400x1280 then we need to tweak mode->hdisplay as well.

I'll push a v2.

--
Carlo Caione

Reply via email to