freemyipod r331 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r330‎ | r331 | r332 >
Date:02:05, 13 December 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: Fix text background alpha blending for byteswapped LCD color formats
Modified paths:
  • /embios/trunk/drawing.S (modified) (history)

Diff [purge]

Index: embios/trunk/drawing.S
@@ -177,11 +177,14 @@
178178 mov r5, #6
179179 renderchar_blendcol:
180180 ldrh lr, [r6]
181 - tst lr, #1
182 - orrne lr, lr, #0x10000
183 - mov lr, lr,lsr#1
 181+ movs lr, lr,lsr#1
 182+#ifdef LCD_BIGENDIAN
 183+ orrcs lr, lr, #0x10000
184184 bic lr, lr, #0x1000
185185 bic lr, lr, #0x84
 186+#else
 187+ bic lr, lr, #0x410
 188+#endif
186189 add lr, lr, r12
187190 strh lr, [r6], #2
188191 subs r5, r5, #1