projects
/
my-code
/
arm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e2bc174
)
optimized load logo function (thnx to andersro)
author
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Thu, 13 Sep 2007 13:37:23 +0000
(15:37 +0200)
committer
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Thu, 13 Sep 2007 13:37:23 +0000
(15:37 +0200)
betty/display.c
patch
|
blob
|
history
diff --git
a/betty/display.c
b/betty/display.c
index
b3d3e9c
..
4d4e1e1
100644
(file)
--- a/
betty/display.c
+++ b/
betty/display.c
@@
-73,20
+73,17
@@
void display_load_logo(u8 *src) {
u8 *s;
u8 page,width;
- u32 cnt;
s=src;
if(s==0)
s=default_logo;
- cnt=0;
for(page=0;page<DISPLAY_PAGE_MAX;page++) {
DISPLAY_SET_C_ADDR(0);
DISPLAY_SET_PAGE_ADDR(page);
for(width=0;width<DISPLAY_DIMX;width++) {
- DISPLAY_DATA=s[cnt];
- DISPLAY_DATA=s[cnt+1];
- cnt+=2;
+ DISPLAY_DATA=*s++;
+ DISPLAY_DATA=*s++;
}
}
}