Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
Comment thread
hermet marked this conversation as resolved.
steps:
- uses: actions/checkout@v4

- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install meson ninja-build pkg-config libsdl2-dev
sudo apt-get install --no-install-recommends -y meson ninja-build pkg-config libsdl3-dev

- name: Install ThorVG
run: |
Expand Down
6 changes: 3 additions & 3 deletions src/Intersects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ struct UserExample : tvgexam::Example
return true;
}

bool motion(tvg::Canvas* canvas, int32_t x, int32_t y) override
bool motion(tvg::Canvas* canvas, float x, float y) override
Comment thread
hermet marked this conversation as resolved.
{
//center align
mx = x - (mw / 2);
my = y - (mh / 2);
mx = static_cast<int>(x - float(mw) * 0.5f);
my = static_cast<int>(y - float(mh) * 0.5f);

return false;
}
Expand Down
6 changes: 3 additions & 3 deletions src/LottieInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct UserExample : tvgexam::Example
return degree;
}

bool clickdown(tvg::Canvas* canvas, int32_t x, int32_t y, uint8_t button) override
bool clickdown(tvg::Canvas* canvas, float x, float y, uint8_t button) override
{
down = {float(x), float(y)};
prv = {float(x) - origin.x, float(y) - origin.y};
Expand All @@ -80,7 +80,7 @@ struct UserExample : tvgexam::Example
return false;
}

bool clickup(tvg::Canvas* canvas, int32_t x, int32_t y, uint8_t button) override
bool clickup(tvg::Canvas* canvas, float x, float y, uint8_t button) override
{
pressed = false;

Expand Down Expand Up @@ -108,7 +108,7 @@ struct UserExample : tvgexam::Example
tvgexam::verify(lottie->apply(slot.rotation));
}

bool motion(tvg::Canvas* canvas, int32_t x, int32_t y) override
bool motion(tvg::Canvas* canvas, float x, float y) override
{
cur = {float(x) - origin.x, float(y) - origin.y};
if (!pressed) return false;
Expand Down
2 changes: 1 addition & 1 deletion src/LottieTweening.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct UserExample : tvgexam::Example
std::cout << "tween to: " << states[stateIdx].name << std::endl;
}

bool clickdown(tvg::Canvas* canvas, int32_t x, int32_t y, uint8_t button) override
bool clickdown(tvg::Canvas* canvas, float x, float y, uint8_t button) override
{
int i = 0;
for (auto& state : states) {
Expand Down
Loading