notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psp port runs, bad colors
[libpicofe.git]
/
common
/
menu.c
diff --git
a/common/menu.c
b/common/menu.c
index
b6bd019
..
bb59510
100644
(file)
--- a/
common/menu.c
+++ b/
common/menu.c
@@
-164,7
+164,12
@@
static int parse_hex_color(char *buff)
{
\r
char *endp = buff;
\r
int t = (int) strtoul(buff, &endp, 16);
\r
{
\r
char *endp = buff;
\r
int t = (int) strtoul(buff, &endp, 16);
\r
- if (endp != buff) return ((t>>8)&0xf800) | ((t>>5)&0x07e0) | ((t>>3)&0x1f);
\r
+ if (endp != buff)
\r
+#ifdef PSP
\r
+ return ((t<<8)&0xf800) | ((t>>5)&0x07e0) | ((t>>19)&0x1f);
\r
+#else
\r
+ return ((t>>8)&0xf800) | ((t>>5)&0x07e0) | ((t>>3)&0x1f);
\r
+#endif
\r
return -1;
\r
}
\r
\r
return -1;
\r
}
\r
\r