Skip to content

Commit

Permalink
fixed create_bitmap
Browse files Browse the repository at this point in the history
  • Loading branch information
codewitch-honey-crisis committed Jun 18, 2024
1 parent 081874f commit 2afa92a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/gfx_bitmap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ namespace gfx {
}
};
}
template<typename PixelType,typename PaletteType=palette<PixelType,PixelType>> inline static bitmap<PixelType,PaletteType> create_bitmap(size16 size, PaletteType* palette=nullptr, void*(allocator)(size_t)=::malloc) {
template<typename PixelType,typename PaletteType=palette<PixelType,PixelType>> inline static bitmap<PixelType,PaletteType> create_bitmap(size16 size, const PaletteType* palette=nullptr, void*(allocator)(size_t)=::malloc) {
using bmp_type = bitmap<PixelType,PaletteType>;
size_t sz = bmp_type::sizeof_buffer(size);
return bmp_type(size,allocator(sz),palette);
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "htcw_gfx",
"version": "1.670.2",
"version": "1.671",
"description": "A device independent graphics library for embedded and IoT devices",
"keywords": ["tft", "lcd","e-paper","e-ink", "graphics", "spi", "parallel", "i2c", "drawing", "jpg", "ttf","vlw", "font", "svg","2d", "vector"],
"authors": {
Expand Down

0 comments on commit 2afa92a

Please sign in to comment.