Skip to content

Commit

Permalink
Make the sampling parameter of Canvas::drawAtlas() optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
domchen committed Feb 26, 2024
1 parent 0c063a1 commit a687f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/tgfx/core/Canvas.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class Canvas {
* @param paint blend, alpha, and so on, used to draw.
*/
void drawAtlas(std::shared_ptr<Image> atlas, const Matrix matrix[], const Rect tex[],
const Color colors[], size_t count, SamplingOptions sampling,
const Color colors[], size_t count, SamplingOptions sampling = {},
const Paint* paint = nullptr);

private:
Expand Down

0 comments on commit a687f23

Please sign in to comment.