[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-fbdev-devel
Subject: [Linux-fbdev-devel] [PATCH, 2.4] Fix inverse logo for FB_VISUAL_MONO01
From: Thiemo Seufer <ica2_ts () csv ! ica ! uni-stuttgart ! de>
Date: 2003-04-26 23:27:30
[Download RAW message or body]
Hello Geert,
this fixes the logo inversion logic for FB_VISUAL_MONO01. It also fixes
the declaration of a variable in the middle of a function, which isn't
allowed in traditional C.
2.4 only, as the 2.5 logo code has changed.
Thiemo
@@ -2400,11 +2434,15 @@ static int __init fbcon_show_logo( void
p->type == FB_TYPE_PLANES ||
p->type == FB_TYPE_INTERLEAVED_PLANES)) {
+ int is_hga = !strncmp(p->fb_info->modename, "HGA", 3);
+ unsigned char inverse = 0xff;
+
/* monochrome */
- unsigned char inverse = p->inverse || p->visual == FB_VISUAL_MONO01
- ? 0x00 : 0xff;
+ if (p->inverse)
+ inverse = ~inverse;
+ if (p->visual == FB_VISUAL_MONO01)
+ inverse = ~inverse;
- int is_hga = !strncmp(p->fb_info->modename, "HGA", 3);
/* can't use simply memcpy because need to apply inverse */
for( y1 = 0; y1 < LOGO_H; y1++ ) {
src = logo + y1*LOGO_LINE;
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic