Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

[PATCH] fbdev/logo: Check compatibility of main and extra ..

 
   Linux (Home) -> Ports PowerPC RSS
Next:  Bug#509933: versioning SONAMEs of shared librarie..  
Author Message
Geert Uytterhoeven

External


Since: Dec 09, 2008
Posts: 1



(Msg. 1) Posted: Tue Dec 09, 2008 2:20 pm
Post subject: [PATCH] fbdev/logo: Check compatibility of main and extra logos
Archived from groups: linux>kernel, others (more info?)

Subject: [PATCH] fbdev/logo: Check compatibility of main and extra logos

The code to draw penguin logos always uses some properties of the main logo.
This is incorrect if additional logos (CONFIG_FB_LOGO_EXTRA=y) have different
types than the main logo, which causes corrupted logo images.

http://bugzilla.kernel.org/show_bug.cgi?id=12181

Hence skip additional logos that are not compatible with the main logo.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven.RemoveThis@sonycom.com>
---
Technically, it's possible to draw multiple logos of different types on
truecolor displays, but this would complicate the (already quite complicated)
logo drawing code even more.

This patch fixes a problem with Debian's linux-image-2.6.26-1-powerpc64
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508173

drivers/video/fbmem.c | 4 ++++
1 file changed, 4 insertions(+)

--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -510,6 +510,10 @@ static int fb_prepare_extra_logos(struct
fb_logo_ex_num = 0;

for (i = 0; i < fb_logo_ex_num; i++) {
+ if (fb_logo_ex[i].logo->type != fb_logo.logo->type) {
+ fb_logo_ex[i].logo = NULL;
+ continue;
+ }
height += fb_logo_ex[i].logo->height;
if (height > yres) {
height -= fb_logo_ex[i].logo->height;

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven.RemoveThis@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo.RemoveThis@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top
Login to vote
Display posts from previous:   
Related Topics:
synaptics compatibility patch for 2.6.15 - Hi all, i've just updated the patch for synaptics xfree/xorg support on adb based trackpads. http://www.artha.org/shammash/ppc/adb_syn/ please test and let me know if it works. tia luca -- Beware of programmers who carry screwdrivers. -- Leonard...

orinoco patch 13e - Dear List, trying to compile the great patched sources for the airport card including monitor mode, from http://www.paultt.org/downloads/index.html but the make process stops with: /usr/src/orinoco-0.13e-ptt/airport.c:273: error: array type has ..

patch for m3mirror and 2.6.14 - Hi List, just compiled a 2.6.14 on my pismo, and had to change the kernel sources to allow the ati m3mirror tool to work. i did so successfully with my last three kernels using the following instructions: --- prom_init.c.orig 2004-09-07..

working patch for orinoco 0.15rc2 (linux 2.6.14) ? - hi all, i've downloaded[0] the patch for monitor mode (with kismet) for 0.15rc2 (included in linux 2.6.14) but doesn't apply cleanly and doesn't compile. anyone can point me to a working patch ? thanks :) [0]..

[PATCH 001/001] PMAC HD runtime blinking control - Hi, I've finally spend the time to mend the patch for control of the HD led blinking at runtime. This is a patch against 2.6.15 The sysfs entry is attached to the PCI device and to the MACIO device if available. I think that was what Ben was asking for...
       Linux (Home) -> Ports PowerPC All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact