svn commit: r193790 - head/sys/i386/isa

Xin LI delphij at FreeBSD.org
Tue Jun 9 00:54:58 UTC 2009


Author: delphij
Date: Tue Jun  9 00:54:57 2009
New Revision: 193790
URL: http://svn.freebsd.org/changeset/base/193790

Log:
  Add line width calculations for 15/16 and 24/32 bit modes in case
  the "Get Scan Line Length" function fails, as it does in Parallels
  (in Version 2.2, Build 2112 at least).
  
  PR:		i386/127367
  Obtained from:	DragonFly
  Submitted by:	Pedro Giffuni
  MFC after:	1 month

Modified:
  head/sys/i386/isa/vesa.c

Modified: head/sys/i386/isa/vesa.c
==============================================================================
--- head/sys/i386/isa/vesa.c	Tue Jun  9 00:47:54 2009	(r193789)
+++ head/sys/i386/isa/vesa.c	Tue Jun  9 00:54:57 2009	(r193790)
@@ -1111,6 +1111,14 @@ vesa_set_mode(video_adapter_t *adp, int 
 		default: /* shouldn't happen */
 			vesa_adp->va_line_width = info.vi_width;
 			break;
+		case 15:
+		case 16:
+			vesa_adp->va_line_width = info.vi_width*2;
+			break;
+		case 24:
+		case 32:
+			vesa_adp->va_line_width = info.vi_width*4;
+			break;
 		}
 	} else {
 		vesa_adp->va_line_width = info.vi_width;


More information about the svn-src-head mailing list