Use current resolution by default, change rate to 75 to match
fbdevModeSupported cut-off (?). Glenn McGrath <glennm@hydrix.com>
This commit is contained in:
parent
e4ac2411ed
commit
7124cfaa00
|
@ -161,10 +161,17 @@ fbdevScreenInitialize (KdScreenInfo *screen, FbdevScrPriv *scrpriv)
|
||||||
int k;
|
int k;
|
||||||
|
|
||||||
if (!screen->width || !screen->height)
|
if (!screen->width || !screen->height)
|
||||||
|
{
|
||||||
|
if (ioctl (priv->fd, FBIOGET_VSCREENINFO, &var) >= 0) {
|
||||||
|
screen->width = var.xres;
|
||||||
|
screen->height = var.yres;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
screen->width = 1024;
|
screen->width = 1024;
|
||||||
screen->height = 768;
|
screen->height = 768;
|
||||||
screen->rate = 72;
|
}
|
||||||
|
screen->rate = 75;
|
||||||
}
|
}
|
||||||
if (!screen->fb[0].depth)
|
if (!screen->fb[0].depth)
|
||||||
screen->fb[0].depth = 16;
|
screen->fb[0].depth = 16;
|
||||||
|
|
Loading…
Reference in New Issue