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
This commit is contained in:
parent
c994fb7c5b
commit
38676b52dd
@ -1111,6 +1111,14 @@ vesa_set_mode(video_adapter_t *adp, int mode)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user