Skip to content

Commit

Permalink
fix incorrect color format for image filters
Browse files Browse the repository at this point in the history
  • Loading branch information
marekmaskarinec committed Oct 23, 2022
1 parent 520907a commit 72242e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void th_blit_tex(th_image *img, th_quad q, uint32_t color) {

float colors[4];
for (int i=0; i < 4; ++i)
colors[i] = ((color >> (8 * i)) & 0xff) / (float)0xff;
colors[3 - i] = ((color >> (8 * i)) & 0xff) / (float)0xff;

th_quad bounds = img->crop;
if (img->flipv) {
Expand Down
1 change: 0 additions & 1 deletion tests/uit.um
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"image.um"
"input.um"
"lerp.um"
"light.um"
"misc.um"
"particles.um"
"canvas.um"
Expand Down

0 comments on commit 72242e0

Please sign in to comment.