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

Phil Blundell <xserver-commit-u7BhqnqprCWvj1b/[email protected]>
Newsgroups gmane.comp.freedesktop.xserver.cvs
Message-ID <[email protected]>
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  <[email protected]>

	* 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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.