Skip to content

Commit

Permalink
added opacity tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xelatihy committed Mar 5, 2020
1 parent 399db9b commit d0b2b81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/yimgproc/yimgproc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ bool make_image_preset(
make_fbmmap(img, size);
img = srgb_to_rgb(img);
} else if (type == "test-checker-opacity") {
make_checker(img, size, 1, {0,0,0,0}, {1,1,1,1});
make_checker(img, size, 1, {1,1,1,1}, {0,0,0,0});
} else if (type == "test-grid-opacity") {
make_grid(img, size, 1, {1,1,1,1}, {0,0,0,0});
} else {
error = "unknown preset";
img = {};
Expand Down
Binary file modified tests/_data/textures/checker-opacity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/_data/textures/grid-opacity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d0b2b81

Please sign in to comment.