notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
error checking for png
[picodrive.git]
/
Pico
/
cd
/
cell_map.c
diff --git
a/Pico/cd/cell_map.c
b/Pico/cd/cell_map.c
index
5358a09
..
151a3a8
100644
(file)
--- a/
Pico/cd/cell_map.c
+++ b/
Pico/cd/cell_map.c
@@
-1,3
+1,5
@@
+// Convert "cell arrange" address to normal address.
+// (c) Copyright 2007, Grazvydas "notaz" Ignotas
// 64 x32 x16 x8 x4 x4
static unsigned int cell_map(int celln)
// 64 x32 x16 x8 x4 x4
static unsigned int cell_map(int celln)
@@
-28,7
+30,7
@@
static unsigned int cell_map(int celln)
row = celln & 0x1f;
row |= (celln & 0x7800) >> 6;
break;
row = celln & 0x1f;
row |= (celln & 0x7800) >> 6;
break;
- default: //
just
to make compiler happy
+ default: //
never happens, only here
to make compiler happy
col = row = 0;
break;
}
col = row = 0;
break;
}