Skip to content

Commit 5ae57ac

Browse files
SiegeLordExSiegeLord
authored andcommitted
Add some bitmap tests that test some corner cases of PNG loading.
1 parent d948d3f commit 5ae57ac

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

examples/data/gradient_gamma.png

3.31 KB
Loading

examples/data/gradient_linear.png

8.12 KB
Loading
224 KB
Loading

tests/test_bitmaps3.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Test various edge cases with color spaces etc.
2+
3+
[bitmaps]
4+
mysha256x256_16bit=../examples/data/mysha256x256_16bit.png
5+
gradient_gamma=../examples/data/gradient_gamma.png
6+
gradient_linear=../examples/data/gradient_linear.png
7+
8+
[test gradient linear]
9+
op0=al_clear_to_color(red)
10+
op1=al_draw_bitmap(gradient_linear, 0, 0, 0)
11+
hash=ac15184e
12+
13+
[test gradient gamma]
14+
op0=al_clear_to_color(red)
15+
op1=al_draw_bitmap(gradient_gamma, 0, 0, 0)
16+
hash=9005cf00
17+
18+
[test 16bit]
19+
op0=al_clear_to_color(red)
20+
op1=al_draw_bitmap(mysha256x256_16bit, 0, 0, 0)
21+
hash=70059efa

0 commit comments

Comments
 (0)