mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
cRGBT::A should return 255, not 1. Whoops.
This commit is contained in:
parent
0fc40cff0a
commit
450b6de384
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ struct cRGBT
|
||||||
static __forceinline unsigned char R(const unsigned char * p) { return p[0]; }
|
static __forceinline unsigned char R(const unsigned char * p) { return p[0]; }
|
||||||
static __forceinline unsigned char G(const unsigned char * p) { return p[1]; }
|
static __forceinline unsigned char G(const unsigned char * p) { return p[1]; }
|
||||||
static __forceinline unsigned char B(const unsigned char * p) { return p[2]; }
|
static __forceinline unsigned char B(const unsigned char * p) { return p[2]; }
|
||||||
static __forceinline unsigned char A(const unsigned char * p, BYTE r, BYTE g, BYTE b) { return p[0] != r || p[1] != g || p[2] != b; }
|
static __forceinline unsigned char A(const unsigned char * p, BYTE r, BYTE g, BYTE b) { return (p[0] != r || p[1] != g || p[2] != b) ? 255 : 0; }
|
||||||
static __forceinline int Gray(const unsigned char * p) { return (p[0]*77 + p[1]*143 + p[2]*36)>>8; }
|
static __forceinline int Gray(const unsigned char * p) { return (p[0]*77 + p[1]*143 + p[2]*36)>>8; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue