File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ var SubtitlesOctopus = function (options) {
63
63
64
64
self . hasAlphaBug = false ;
65
65
66
+ // private
67
+ var targetWidth ; // Width of render target
68
+ var targetHeight ; // Height of render target
69
+
66
70
( function ( ) {
67
71
if ( typeof ImageData . prototype . constructor === 'function' ) {
68
72
try {
@@ -753,11 +757,11 @@ var SubtitlesOctopus = function (options) {
753
757
self . canvas . style . pointerEvents = 'none' ;
754
758
}
755
759
756
- if ( self . canvas . _width !== width || self . canvas . _height !== height ) {
760
+ if ( targetWidth !== width || targetHeight !== height ) {
757
761
self . canvas . width = width ;
758
762
self . canvas . height = height ;
759
- self . canvas . _width = width ;
760
- self . canvas . _height = height ;
763
+ targetWidth = width ;
764
+ targetHeight = height ;
761
765
762
766
self . worker . postMessage ( {
763
767
target : 'canvas' ,
You can’t perform that action at this time.
0 commit comments