[bitmaps]
allegro=../examples/data/allegro.pcx

# We can't assume that a backbuffer with alpha is available, so draw
# to a temporary bitmap.
[template]
op0=temp = al_create_bitmap(640, 480)
op1=al_set_target_bitmap(temp)
op2=al_clear_to_color(brown)
op3=b = al_load_bitmap(filename)
op4=al_set_blender(ALLEGRO_ADD, ALLEGRO_ONE, ALLEGRO_INVERSE_ALPHA)
op5=al_draw_bitmap(b, 0, 0, 0)
op6=al_set_target_bitmap(target)
op7=al_set_separate_blender(ALLEGRO_ADD, ALLEGRO_ALPHA, ALLEGRO_INVERSE_ALPHA, ALLEGRO_ADD, ALLEGRO_ZERO, ALLEGRO_ONE)
op8=al_draw_bitmap(temp, 0, 0, 0)
flags=ALLEGRO_NO_PREMULTIPLIED_ALPHA

[test bmp]
extend=template
filename=../examples/data/fakeamp.bmp
hash=62176b87

[test jpg]
extend=template
filename=../examples/data/obp.jpg
hash=8e37f5f3
sig=lXWWYJaWKicWTKIXYKdecgPKaYKaeHLRLbYKhJSEFHbZKhJIHFJdYKn1IEFabVKPSQNPNNNKKKKKKKKKK

[test pcx]
extend=template
filename=../examples/data/allegro.pcx
hash=c44929e5

[test png]
extend=template
filename=../examples/data/mysha256x256.png
hash=771a3491

[test tga]
extend=template
filename=../examples/data/fixed_font.tga
hash=64fa3221


[test png interlaced]
extend=template
filename=../examples/data/icon.png
hash=9e6b5342

[save template]
op0=al_save_bitmap(filename, allegro)
op1=b = al_load_bitmap(filename)
op2=al_clear_to_color(brown)
op3=al_draw_bitmap(b, 0, 0, 0)

[test save bmp]
extend=save template
filename=tmp.bmp
hash=c44929e5

[test save jpg]
extend=save template
filename=tmp.jpg
sig=jdelWKKKKaYmeXKKKKLNVNKKKKKHHHLLKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK

[test save pcx]
extend=save template
filename=tmp.pcx
hash=c44929e5

[test save png]
extend=save template
filename=tmp.png
hash=c44929e5

[test save tga]
extend=save template
filename=tmp.tga
hash=c44929e5
