mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Avoid LLVM warning
This commit is contained in:
parent
976c0d96d1
commit
46f7f29cec
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
typedef unsigned int Color;
|
||||
|
||||
//have to use a define to ensure constant folding.. with an inline I don't get that, sucks
|
||||
#define COLOR(i) (((i << 16) & 0xFF0000) | (i & 0xFF00) | ((i >> 16) & 0xFF) | 0xFF000000)
|
||||
#define COLOR(i) (((i&0xFF) << 16) | (i & 0xFF00) | ((i & 0xFF0000) >> 16) | 0xFF000000)
|
||||
inline Color darkenColor(Color color) {
|
||||
return (color & 0xFF000000) | ((color >> 1)&0x7F7F7F);
|
||||
}
|
||||
|
@ -13,4 +13,4 @@ inline Color whitenColor(Color color) {
|
|||
inline Color colorInterpol(Color x, Color y, int n) {
|
||||
// TODO
|
||||
return x;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue