[AD] Memory bitmaps badly broken |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I just updated my local checkout for the
first time in a week or more, so I'm not
sure when this happened, but one of the
tools I'm using stopped working. I wrote
a test case and it exhibits the same
behaviour:
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
int main(void)
{
al_init();
al_init_image_addon();
ALLEGRO_DISPLAY *d = al_create_display(800, 600);
al_set_new_bitmap_flags(ALLEGRO_MEMORY_BITMAP);
ALLEGRO_BITMAP *b = al_load_bitmap("layer1.png");
al_clear_to_color(al_map_rgb(255, 255, 255));
al_draw_bitmap(b, 0, 0, 0);
al_flip_display();
al_rest(5);
return 0;
}
I tried with 2 different images and they both
looked liked they had the same problem. Here
is the image anyway:
http://trent.gamblin.ca/temp/layer1.png
And what the output looks like:
http://trent.gamblin.ca/temp/bug.png
I'm running OS X.