# Too many parameters to test...
#   target: memory, backbuffer, off-screen texture
#   mode: WRITEONLY, READWRITE, READONLY
#   all the pixel formats (24b especially problematic)
#   odd sizes especially problematic
#   lock region or entire bitmap

# Locking an off-screen bitmap

[texture]
op0= al_clear_to_color(#554321)
op1=
op2= bmp = al_create_bitmap(640, 480)
op3= al_set_target_bitmap(bmp)
op4= al_clear_to_color(#00000000)
op5= al_lock_bitmap_region(bmp, 133, 65, 381, 327, format, flags)
op6= fill_lock_region(alphafactor, false)
op7= al_unlock_bitmap(bmp)
op8=
op9= al_set_target_bitmap(target)
op10=al_set_blender(ALLEGRO_ADD, ALLEGRO_ALPHA, ALLEGRO_INVERSE_ALPHA)
op11=al_draw_bitmap(bmp, 0, 0, 0)
flags=ALLEGRO_LOCK_WRITEONLY
alphafactor=1.0

[test texture 32b ARGB_8888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_ARGB_8888
hash=25e01c26
sig=FFFFFFFFFFFDDEGKMFFFEEGJOQFFFEGINTVFFFFHLQYZFFFFINUcdFFFGKPXhiFFFHLSbmmFFFFFFFFFF

[test texture 32b RGBA_8888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_RGBA_8888
hash=25e01c26
sig=FFFFFFFFFFFDDEGKMFFFEEGJOQFFFEGINTVFFFFHLQYZFFFFINUcdFFFGKPXhiFFFHLSbmmFFFFFFFFFF

[test texture 16b ARGB_4444]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_ARGB_4444
hash=94ba90ac
sig=FFFFFFFFFFFDDDEIKFFFEEFIMOFFFEEHKQSFFFFGKOWXFFFFHMRabFFFGIOVffFFFGJQXkjFFFFFFFFFF

[test texture 24b RGB_888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_RGB_888
hash=5a844e39
sig=FFFFFFFFFFF59DHLMFFF9DIMQQFFFCHMRWVFFFGLRWcZFFFJPWcieFFFNUahniFFFRYfmtnFFFFFFFFFF

[test texture 16b RGB_565]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_RGB_565
hash=7ee470cd

[test texture 15b RGB_555]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_RGB_555
hash=d8bcc9c6

[test texture 16b RGBA_5551]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_RGBA_5551
alphafactor=2.0
hash=752a4074

[test texture 16b ARGB_1555]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_ARGB_1555
alphafactor=2.0
hash=752a4074

[test texture 32b ABGR_8888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_ABGR_8888
hash=25e01c26
sig=FFFFFFFFFFFDDEGKMFFFEEGJOQFFFEGINTVFFFFHLQYZFFFFINUcdFFFGKPXhiFFFHLSbmmFFFFFFFFFF

[test texture 32b XBGR_8888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_XBGR_8888
hash=5a844e39
sig=FFFFFFFFFFF59DHLMFFF9DIMQQFFFCHMRWVFFFGLRWcZFFFJPWcieFFFNUahniFFFRYfmtnFFFFFFFFFF

[test texture 24b BGR_888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_BGR_888
hash=5a844e39
sig=FFFFFFFFFFF59DHLMFFF9DIMQQFFFCHMRWVFFFGLRWcZFFFJPWcieFFFNUahniFFFRYfmtnFFFFFFFFFF

[test texture 16b BGR_565]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_BGR_565
hash=7ee470cd

[test texture 15b BGR_555]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_BGR_555
hash=d8bcc9c6

[test texture 32b RGBX_8888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_RGBX_8888
hash=5a844e39
sig=FFFFFFFFFFF59DHLMFFF9DIMQQFFFCHMRWVFFFGLRWcZFFFJPWcieFFFNUahniFFFRYfmtnFFFFFFFFFF

[test texture 32b XRGB_8888]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_XRGB_8888
hash=5a844e39
sig=FFFFFFFFFFF59DHLMFFF9DIMQQFFFCHMRWVFFFGLRWcZFFFJPWcieFFFNUahniFFFRYfmtnFFFFFFFFFF

[test texture f32 ABGR_F32]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_ABGR_F32
hash=25e01c26
sig=FFFFFFFFFFFDDEGKMFFFEEGJOQFFFEGINTVFFFFHLQYZFFFFINUcdFFFGKPXhiFFFHLSbmmFFFFFFFFFF

[test texture 32b ABGR_8888_LE]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_ABGR_8888_LE
hash=25e01c26
sig=FFFFFFFFFFFDDEGKMFFFEEGJOQFFFEGINTVFFFFHLQYZFFFFINUcdFFFGKPXhiFFFHLSbmmFFFFFFFFFF

[test texture 16b RGBA_4444]
extend=texture
format=ALLEGRO_PIXEL_FORMAT_RGBA_4444
hash=94ba90ac
sig=FFFFFFFFFFFDDDEIKFFFEEFIMOFFFEEHKQSFFFFGKOWXFFFFHMRabFFFGIOVffFFFGJQXkjFFFFFFFFFF
