dosowisko: put transparent pixels in checkerboard

This commit is contained in:
Sebastian Krzyszkowiak 2016-01-19 00:15:42 +01:00
parent 749da9203a
commit 76cf21daeb

View file

@ -162,6 +162,9 @@ void* Gamestate_Load(struct Game *game, void (*progress)(struct Game*)) {
for (x = 0; x < al_get_bitmap_width(data->checkerboard); x=x+2) {
for (y = 0; y < al_get_bitmap_height(data->checkerboard); y=y+2) {
al_put_pixel(x, y, al_map_rgb(0,0,0));
al_put_pixel(x+1, y, al_map_rgba(0,0,0,0));
al_put_pixel(x, y+1, al_map_rgba(0,0,0,0));
al_put_pixel(x+1, y+1, al_map_rgba(0,0,0,0));
}
}
al_unlock_bitmap(data->checkerboard);