Skip to content

Commit

Permalink
fix ImageMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Jan 20, 2024
1 parent 7f3a011 commit 91c19a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/screen/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ void _fillPolygon4(SImage_ img, pxt::RefCollection *args) {
);
}

} // namespace ImageMethods
} // namespace SImageMethods

namespace image {
/**
Expand All @@ -1480,7 +1480,7 @@ SImage_ create(int width, int height) {
*/
//%
SImage_ ofBuffer(Buffer buf) {
return ImageMethods::convertAndWrap(buf);
return SImageMethods::convertAndWrap(buf);
}

/**
Expand All @@ -1493,7 +1493,7 @@ Buffer doubledIcon(Buffer icon) {

auto r = NEW_GC(RefImage, icon);
registerGCObj(r);
auto t = ImageMethods::doubled(r);
auto t = SImageMethods::doubled(r);
unregisterGCObj(r);
return t->buffer;
}
Expand Down

0 comments on commit 91c19a5

Please sign in to comment.