Skip to content

Commit

Permalink
rename namespace bitmap to bitmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Oct 9, 2024
1 parent 8f79305 commit 009b6e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions libs/bitmap/bitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,17 +1470,15 @@ void _fillPolygon4(Bitmap_ img, pxt::RefCollection *args) {

} // namespace BitmapMethods

namespace bitmap {
namespace bitmaps {
/**
* Create new bitmap with given content
*/
//%
Bitmap_ ofBuffer(Buffer buf) {
return BitmapMethods::convertAndWrap(buf);
}
}

namespace bitmap {
/**
* Create new empty (transparent) bitmap
*/
Expand Down Expand Up @@ -1509,7 +1507,7 @@ Buffer doubledIcon(Buffer icon) {
return t->buffer;
}

} // namespace bitmap
} // namespace bitmaps

// This is 6.5x faster than standard on word-aligned copy
// probably should move to codal
Expand Down
2 changes: 1 addition & 1 deletion libs/bitmap/bitmap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
type color = number

namespace bitmap {
namespace bitmaps {
export function repeatY(count: number, image: Bitmap) {
let arr = [image]
while (--count > 0)
Expand Down
2 changes: 1 addition & 1 deletion libs/fonts/font12.jres

Large diffs are not rendered by default.

0 comments on commit 009b6e8

Please sign in to comment.