summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-03-16 19:22:29 +0000
committerjkim <jkim@FreeBSD.org>2012-03-16 19:22:29 +0000
commit6893e74dc06fa35c6469f1980df4f72a7ea65a25 (patch)
tree8356a0e5c91d4442cc725470f2a31c6bf1a94642 /sys/dev/fb
parentdfe2b280a7677ace754533357f0df5a174ad1a7b (diff)
downloadFreeBSD-src-6893e74dc06fa35c6469f1980df4f72a7ea65a25.zip
FreeBSD-src-6893e74dc06fa35c6469f1980df4f72a7ea65a25.tar.gz
Do not unnecessarily clear display memory when switching modes.
MFC after: 3 days
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/vesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index ffa2d1d..181caf3 100644
--- a/sys/dev/fb/vesa.c
+++ b/sys/dev/fb/vesa.c
@@ -1313,7 +1313,7 @@ vesa_set_mode(video_adapter_t *adp, int mode)
if ((info.vi_flags & V_INFO_LINEAR) != 0)
mode |= 0x4000;
- if (vesa_bios_set_mode(mode))
+ if (vesa_bios_set_mode(mode | 0x8000))
return (1);
/* Palette format is reset by the above VBE function call. */
OpenPOWER on IntegriCloud