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) {
6363
6464 self . hasAlphaBug = false ;
6565
66+ // private
67+ var targetWidth ; // Width of render target
68+ var targetHeight ; // Height of render target
69+
6670 ( function ( ) {
6771 if ( typeof ImageData . prototype . constructor === 'function' ) {
6872 try {
@@ -753,11 +757,11 @@ var SubtitlesOctopus = function (options) {
753757 self . canvas . style . pointerEvents = 'none' ;
754758 }
755759
756- if ( self . canvas . _width !== width || self . canvas . _height !== height ) {
760+ if ( targetWidth !== width || targetHeight !== height ) {
757761 self . canvas . width = width ;
758762 self . canvas . height = height ;
759- self . canvas . _width = width ;
760- self . canvas . _height = height ;
763+ targetWidth = width ;
764+ targetHeight = height ;
761765
762766 self . worker . postMessage ( {
763767 target : 'canvas' ,
You can’t perform that action at this time.
0 commit comments