Date: Tue, 9 Jun 2009 00:54:57 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r193790 - head/sys/i386/isa Message-ID: <200906090054.n590sv8L050370@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906090054.n590sv8L050370>