Skip to content

Commit

Permalink
Fix: _pre_scale was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
djowel committed Mar 13, 2024
1 parent 5b9a7a7 commit 64b1621
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/host/linux/skia_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion examples/host/windows/skia_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 64b1621

Please sign in to comment.