We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67ab780 commit 2f4d58aCopy full SHA for 2f4d58a
src/platform/ohos/JPAGImageView.cpp
@@ -812,7 +812,10 @@ bool JPAGImageView::present(std::shared_ptr<tgfx::Image> image) {
812
canvas->clear();
813
tgfx::Matrix imageMatrix = tgfx::Matrix::MakeScale(1.0 / _renderScale);
814
imageMatrix.postConcat(_matrix);
815
- canvas->drawImage(image, imageMatrix);
+ canvas->save();
816
+ canvas->concat(imageMatrix);
817
+ canvas->drawImage(image);
818
+ canvas->restore();
819
context->flushAndSubmit();
820
targetWindow->present(context);
821
context->purgeResourcesNotUsedSince(std::chrono::steady_clock::now());
0 commit comments