visws: fix 16 bit framebuffer mode
PATCH 1/1 visws: fix 16 bit framebuffer mode
Hi all,
attached patch (from Florian Boor) allows X to work on visws in 16 bit framebuffer mode.
Please apply.
Signature · 2 lines
Andrey Panin | Linux and UNIX system administrator [email protected] | PGP key: wwwkeys.pgp.net
drivers/video/sgivwfb.c +6 -6
@@ -319,14 +319,14 @@ var->transp.length =0 ;break ;case 16 :/* RGBA 5551 */ - var->red.offset =11 ; + var->red.offset =10 ; var->red.length =5 ; - var->green.offset =6 ; + var->green.offset =5 ; var->green.length =5 ; - var->blue.offset =1 ; + var->blue.offset =0 ; var->blue.length =5 ; - var->transp.offset =0 ; - var->transp.length =0 ; + var->transp.offset =15 ; + var->transp.length =1 ;break ;case 32 :/* RGB 8888 */ var->red.offset =0 ;
@@ -509,7 +509,7 @@SET_DBE_FIELD (WID ,TYP , outputVal,DBE_CMODE_I8 );break ;case 2 : -SET_DBE_FIELD (WID ,TYP , outputVal,DBE_CMODE_RGBA5 ); +SET_DBE_FIELD (WID ,TYP , outputVal,DBE_CMODE_ARGB5 );break ;case 4 :SET_DBE_FIELD (WID ,TYP , outputVal,DBE_CMODE_RGB8 );
Quoted 2 lines · On Fri, 3 Oct 2003 [email protected] wrote:
attached patch (from Florian Boor) allows X to work on visws in 16 bit framebuffer mode.
Please also change the comment from RGBA5551' to ARGB1555' to match the code.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds