vbe: Refuse to believe tiny (or negative) panel sizes from PanelID
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
84a14fab8f
commit
a861fe6a1c
|
@ -1028,6 +1028,11 @@ VBEInterpretPanelID(int scrnIndex, struct vbePanelID *data)
|
||||||
if (pScrn->monitor->nHsync || pScrn->monitor->nVrefresh)
|
if (pScrn->monitor->nHsync || pScrn->monitor->nVrefresh)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (data->hsize < 320 || data->vsize < 240) {
|
||||||
|
xf86DrvMsg(scrnIndex, X_INFO, "...which I refuse to believe\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mode = xf86CVTMode(data->hsize, data->vsize, PANEL_HZ, 1, 0);
|
mode = xf86CVTMode(data->hsize, data->vsize, PANEL_HZ, 1, 0);
|
||||||
|
|
||||||
pScrn->monitor->nHsync = 1;
|
pScrn->monitor->nHsync = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user