# HG changeset patch # User szabii # Date 987799154 0 # Node ID 58b24a998cb57203903a47f7ef2dc0a43fb5fd66 # Parent c97496b240c13e40179e3f7661c351ea151065cc nothing important? diff -r c97496b240c1 -r 58b24a998cb5 libvo/vo_fbdev.c --- 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; } }