xserver/hw/kdrive/fbdev fbdev.c,1.43,1.44
Keith Packard
xserver-commit at pdx.freedesktop.org
Thu May 6 09:19:35 PDT 2004
Committed by: keithp
Update of /cvs/xserver/xserver/hw/kdrive/fbdev
In directory pdx:/tmp/cvs-serv9350/hw/kdrive/fbdev
Modified Files:
fbdev.c
Log Message:
2004-05-06 Keith Packard <keithp at keithp.com>
* hw/kdrive/fbdev/fbdev.c: (fbdevScreenInitialize):
Use current resolution by default, change rate to 75
to match fbdevModeSupported cut-off (?).
Glenn McGrath <glennm at hydrix.com>
Index: fbdev.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/fbdev/fbdev.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- a/fbdev.c 1 Dec 2003 22:11:12 -0000 1.43
+++ b/fbdev.c 6 May 2004 16:19:32 -0000 1.44
@@ -162,9 +162,16 @@
if (!screen->width || !screen->height)
{
- screen->width = 1024;
- screen->height = 768;
- screen->rate = 72;
+ if (ioctl (priv->fd, FBIOGET_VSCREENINFO, &var) >= 0) {
+ screen->width = var.xres;
+ screen->height = var.yres;
+ }
+ else
+ {
+ screen->width = 1024;
+ screen->height = 768;
+ }
+ screen->rate = 75;
}
if (!screen->fb[0].depth)
screen->fb[0].depth = 16;
More information about the xserver-commit
mailing list