xserver/hw/kdrive/fbdev fbdev.c,1.49,1.50

Phil Blundell xserver-commit at pdx.freedesktop.org
Sun Nov 28 15:20:20 PST 2004


Committed by: pb

Update of /cvs/xserver/xserver/hw/kdrive/fbdev
In directory gabe:/tmp/cvs-serv29438/hw/kdrive/fbdev

Modified Files:
	fbdev.c 
Log Message:
2004-11-28  Phil Blundell  <pb at handhelds.org>

	* hw/kdrive/fbdev/fbdev.c (fbdevScreenInitialize): Re-read "fix"
	structure from kernel after mode selection, in case line pitch
	has changed.



Index: fbdev.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/fbdev/fbdev.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- fbdev.c	14 Sep 2004 23:08:10 -0000	1.49
+++ fbdev.c	28 Nov 2004 23:20:17 -0000	1.50
@@ -198,6 +198,11 @@
 	return FALSE;
     }
 
+    /* Re-get the "fixed" parameters since they might have changed */
+    k = ioctl (priv->fd, FBIOGET_FSCREENINFO, &priv->fix);
+    if (k < 0)
+        perror ("FBIOGET_FSCREENINFO");
+
     /* Now get the new screeninfo */
     ioctl (priv->fd, FBIOGET_VSCREENINFO, &priv->var);
     depth = priv->var.bits_per_pixel;



More information about the xserver-commit mailing list