mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Merge branch 'fix_canvas_transforms' into 'master'
BUG: Fix broken lucky wheel drawing See merge request BondageProjects/Bondage-College!5523
This commit is contained in:
commit
ccf74d85e3
1 changed files with 4 additions and 3 deletions
|
@ -743,8 +743,9 @@ function DrawImageEx(
|
|||
// Blit the transformed image to the main canvas, applying opacity and zoom
|
||||
|
||||
// Instead of expensive save/restore, we store the relevant state info and restore it manually
|
||||
let savedCompositeOperation = Canvas.globalCompositeOperation;
|
||||
let savedAlpha = Canvas.globalAlpha;
|
||||
const savedCompositeOperation = Canvas.globalCompositeOperation;
|
||||
const savedAlpha = Canvas.globalAlpha;
|
||||
const savedTransform = Canvas.getTransform();
|
||||
|
||||
Canvas.globalCompositeOperation = BlendingMode;
|
||||
Canvas.globalAlpha = Alpha;
|
||||
|
@ -767,7 +768,7 @@ function DrawImageEx(
|
|||
|
||||
Canvas.globalCompositeOperation = savedCompositeOperation;
|
||||
Canvas.globalAlpha = savedAlpha;
|
||||
Canvas.resetTransform();
|
||||
Canvas.setTransform(savedTransform);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue