Last active
November 12, 2023 12:13
-
-
Save ao-kenji/2304d43fffd21e506b46d2b28c07f8c6 to your computer and use it in GitHub Desktop.
[Merged into the main tree] Need this diff to use 8bpp X server on LUNA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: sys/arch/luna88k/dev/lunafb.c | |
=================================================================== | |
RCS file: /cvs/src/sys/arch/luna88k/dev/lunafb.c,v | |
retrieving revision 1.29 | |
diff -u -r1.29 lunafb.c | |
--- sys/arch/luna88k/dev/lunafb.c 15 Jul 2022 17:57:26 -0000 1.29 | |
+++ sys/arch/luna88k/dev/lunafb.c 5 Aug 2022 15:11:01 -0000 | |
@@ -260,7 +260,11 @@ | |
return omsetcmap(sc, (struct wsdisplay_cmap *)data); | |
case WSDISPLAYIO_GETSUPPORTEDDEPTH: | |
- *(u_int *)data = WSDISPLAYIO_DEPTH_1; | |
+ if (dc->dc_depth == 8) | |
+ *(u_int *)data = | |
+ WSDISPLAYIO_DEPTH_8 | WSDISPLAYIO_DEPTH_1; | |
+ else | |
+ *(u_int *)data = WSDISPLAYIO_DEPTH_1; | |
break; | |
case WSDISPLAYIO_SETGFXMODE: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment