Skip to content

Commit

Permalink
Use BlitFast when creating autotile bitmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
fmatthew5876 committed Jan 15, 2020
1 parent d4c6ba1 commit f1e156a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tilemap_layer.cpp
Expand Up @@ -560,7 +560,7 @@ BitmapRef TilemapLayer::GenerateAutotiles(int count, const std::unordered_map<ui
rect.x = (x * 2 + i) * (TILE_SIZE/2);
rect.y = (y * 2 + j) * (TILE_SIZE/2);

tiles->Blit((dst.x * 2 + i) * (TILE_SIZE / 2), (dst.y * 2 + j) * (TILE_SIZE / 2), *chipset, rect, 255);
tiles->BlitFast((dst.x * 2 + i) * (TILE_SIZE / 2), (dst.y * 2 + j) * (TILE_SIZE / 2), *chipset, rect, 255);
}
}
}
Expand Down

0 comments on commit f1e156a

Please sign in to comment.