fix rgba
parent
03b5815b2a
commit
eb331e4251
2
depot
2
depot
|
@ -1 +1 @@
|
||||||
Subproject commit 118041b9023b74c01038723d69803f1912e870bf
|
Subproject commit 660eaa0992e99ed1a36c50faf7f4f5f2c84ad2c0
|
|
@ -344528,7 +344528,7 @@ void shader_colormap(const char *name, colormap_t c ) {
|
||||||
// colors
|
// colors
|
||||||
|
|
||||||
unsigned rgba( uint8_t r, uint8_t g, uint8_t b, uint8_t a ) {
|
unsigned rgba( uint8_t r, uint8_t g, uint8_t b, uint8_t a ) {
|
||||||
return (unsigned)a << 24 | r << 16 | g << 8 | b;
|
return (unsigned)r << 24 | g << 16 | b << 8 | a;
|
||||||
}
|
}
|
||||||
unsigned bgra( uint8_t b, uint8_t g, uint8_t r, uint8_t a ) {
|
unsigned bgra( uint8_t b, uint8_t g, uint8_t r, uint8_t a ) {
|
||||||
return rgba(r,g,b,a);
|
return rgba(r,g,b,a);
|
||||||
|
|
|
@ -533,7 +533,7 @@ void shader_colormap(const char *name, colormap_t c ) {
|
||||||
// colors
|
// colors
|
||||||
|
|
||||||
unsigned rgba( uint8_t r, uint8_t g, uint8_t b, uint8_t a ) {
|
unsigned rgba( uint8_t r, uint8_t g, uint8_t b, uint8_t a ) {
|
||||||
return (unsigned)a << 24 | r << 16 | g << 8 | b;
|
return (unsigned)r << 24 | g << 16 | b << 8 | a;
|
||||||
}
|
}
|
||||||
unsigned bgra( uint8_t b, uint8_t g, uint8_t r, uint8_t a ) {
|
unsigned bgra( uint8_t b, uint8_t g, uint8_t r, uint8_t a ) {
|
||||||
return rgba(r,g,b,a);
|
return rgba(r,g,b,a);
|
||||||
|
|
|
@ -13453,7 +13453,7 @@ void shader_colormap(const char *name, colormap_t c ) {
|
||||||
// colors
|
// colors
|
||||||
|
|
||||||
unsigned rgba( uint8_t r, uint8_t g, uint8_t b, uint8_t a ) {
|
unsigned rgba( uint8_t r, uint8_t g, uint8_t b, uint8_t a ) {
|
||||||
return (unsigned)a << 24 | r << 16 | g << 8 | b;
|
return (unsigned)r << 24 | g << 16 | b << 8 | a;
|
||||||
}
|
}
|
||||||
unsigned bgra( uint8_t b, uint8_t g, uint8_t r, uint8_t a ) {
|
unsigned bgra( uint8_t b, uint8_t g, uint8_t r, uint8_t a ) {
|
||||||
return rgba(r,g,b,a);
|
return rgba(r,g,b,a);
|
||||||
|
|
Loading…
Reference in New Issue