main
Dominik Madarász 2023-10-19 13:08:02 +02:00
parent 03b5815b2a
commit eb331e4251
4 changed files with 4 additions and 4 deletions

2
depot

@ -1 +1 @@
Subproject commit 118041b9023b74c01038723d69803f1912e870bf Subproject commit 660eaa0992e99ed1a36c50faf7f4f5f2c84ad2c0

View File

@ -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);

View File

@ -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);

View File

@ -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);