From 64b1621e896df5d5ddec5ae0c984589e64ddd7f5 Mon Sep 17 00:00:00 2001 From: djowel Date: Wed, 13 Mar 2024 13:14:28 +0800 Subject: [PATCH] Fix: _pre_scale was removed --- examples/host/linux/skia_app.cpp | 2 +- examples/host/windows/skia_app.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/host/linux/skia_app.cpp b/examples/host/linux/skia_app.cpp index cd1ac0c2..5ecaae3e 100644 --- a/examples/host/linux/skia_app.cpp +++ b/examples/host/linux/skia_app.cpp @@ -88,9 +88,9 @@ namespace } SkCanvas* gpu_canvas = state._surface->getCanvas(); + gpu_canvas->scale(state._scale, state._scale); gpu_canvas->save(); auto cnv = canvas{gpu_canvas}; - cnv.pre_scale(state._scale); draw(cnv); diff --git a/examples/host/windows/skia_app.cpp b/examples/host/windows/skia_app.cpp index 0dc8da09..c9f5873f 100644 --- a/examples/host/windows/skia_app.cpp +++ b/examples/host/windows/skia_app.cpp @@ -185,8 +185,8 @@ void window::render() { SkCanvas* gpu_canvas = surface->getCanvas(); gpu_canvas->save(); + gpu_canvas->scale(_scale, _scale); auto cnv = canvas{gpu_canvas}; - cnv.pre_scale(_scale); draw(cnv);