Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some unit tests related to NativeCodec and DataView. #285

Merged
merged 15 commits into from
Oct 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into feature/ljj_unit_test
  • Loading branch information
illidanstormrange authored Oct 29, 2024
commit b3ab1f805a4fbd82ef730b1583cfedd802930f8a
4 changes: 2 additions & 2 deletions test/src/CanvasTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ TGFX_TEST(CanvasTest, textShape) {
auto newline = [&]() {
x = 0;
height += lineHeight;
path.moveTo(Point{0, height});
path.moveTo({0, height});
};
newline();
for (size_t i = 0; i < count; ++i) {
Expand All @@ -296,7 +296,7 @@ TGFX_TEST(CanvasTest, textShape) {
run->ids.emplace_back(glyphID);
run->positions.push_back(Point{x, height});
x += run->font.getAdvance(glyphID);
path.lineTo(Point{x, height});
path.lineTo({x, height});
if (width < x) {
width = x;
}
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.