Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xf86-video-wsfb/dist/src Add support for 15-b...
details: https://anonhg.NetBSD.org/xsrc/rev/47ab00024b70
branches: trunk
changeset: 10367:47ab00024b70
user: rin <rin%NetBSD.org@localhost>
date: Tue Jul 23 11:40:29 2019 +0000
description:
Add support for 15-bpp framebuffer.
diffstat:
external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 9d2c58c152f9 -r 47ab00024b70 external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c
--- a/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c Sat Jul 20 02:04:45 2019 +0000
+++ b/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c Tue Jul 23 11:40:29 2019 +0000
@@ -545,7 +545,7 @@
/* Handle depth */
default_depth = fPtr->fbi.fbi_bitsperpixel <= 24 ? fPtr->fbi.fbi_bitsperpixel : 24;
- bitsperpixel = fPtr->fbi.fbi_bitsperpixel;
+ bitsperpixel = fPtr->fbi.fbi_bitsperpixel == 15 ? 16 : fPtr->fbi.fbi_bitsperpixel;
#if defined(__NetBSD__) && defined(WSDISPLAY_TYPE_LUNA)
if (wstype == WSDISPLAY_TYPE_LUNA) {
/*
@@ -882,6 +882,7 @@
case 8:
len = fPtr->fbi.fbi_stride * fPtr->fbi.fbi_height;
break;
+ case 15:
case 16:
if (fPtr->fbi.fbi_stride == fPtr->fbi.fbi_width) {
xf86Msg(X_ERROR, "Bogus stride == width in 16bit colour\n");
Home |
Main Index |
Thread Index |
Old Index