Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 7cead20

Browse files
Kingtous金韬
authored andcommitted
fix: shader mask is painted incorrectly on shared offscreen canvas
1 parent 72a0642 commit 7cead20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web_ui/lib/src/engine/safe_browser_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ class OffScreenCanvas {
976976
}
977977

978978
void resize(int requestedWidth, int requestedHeight) {
979-
if(requestedWidth != width && requestedHeight != height) {
979+
if(requestedWidth != width || requestedHeight != height) {
980980
width = requestedWidth;
981981
height = requestedHeight;
982982
if(offScreenCanvas != null) {

0 commit comments

Comments
 (0)