changeset 550:58b24a998cb5

nothing important?
author szabii
date Fri, 20 Apr 2001 20:39:14 +0000
parents c97496b240c1
children e6263c6d377a
files libvo/vo_fbdev.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Fri Apr 20 18:28:13 2001 +0000
+++ b/libvo/vo_fbdev.c	Fri Apr 20 20:39:14 2001 +0000
@@ -439,7 +439,6 @@
 
 static void set_bpp(struct fb_var_screeninfo *p, int bpp)
 {
-/*	p->bits_per_pixel = (bpp == 15) ? 16 : bpp; */
 	p->bits_per_pixel = (bpp + 1) & ~1;
 	p->red.msb_right = p->green.msb_right = p->blue.msb_right = 0;
 	switch (bpp) {
@@ -449,24 +448,24 @@
 			p->red.length = 8;
 			p->green.offset = 8;
 			p->green.length = 8;
+			p->blue.length = 8;
 			p->blue.offset = 0;
-			p->blue.length = 8;
 			break;
 		case 16:
 			p->red.offset = 11;
+			p->green.length = 6;
 			p->red.length = 5;
 			p->green.offset = 5;
-			p->green.length = 6;
+			p->blue.length = 5;
 			p->blue.offset = 0;
-			p->blue.length = 5;
 			break;
 		case 15:
 			p->red.offset = 10;
+			p->green.length = 5;
 			p->red.length = 5;
 			p->green.offset = 5;
-			p->green.length = 5;
+			p->blue.length = 5;
 			p->blue.offset = 0;
-			p->blue.length = 5;
 			break;
 	}
 }