Bladeren bron

Whoops, fix last commit.

phoboslab 9 jaren geleden
bovenliggende
commit
672586bdbc
3 gewijzigde bestanden met toevoegingen van 4 en 5 verwijderingen
  1. 3 2
      jsmpeg.min.js
  2. 1 1
      src/canvas2d.js
  3. 0 2
      src/player.js

Diff onderdrukt omdat het te groot bestand
+ 3 - 2
jsmpeg.min.js


+ 1 - 1
src/canvas2d.js Bestand weergeven

17
 	this.canvas.height = this.height;
17
 	this.canvas.height = this.height;
18
 
18
 
19
 	this.imageData = this.context.getImageData(0, 0, this.width, this.height);
19
 	this.imageData = this.context.getImageData(0, 0, this.width, this.height);
20
-	this.imageData.data.fill(255);
20
+	JSMpeg.Fill(this.imageData.data, 255);
21
 };
21
 };
22
 
22
 
23
 CanvasRenderer.prototype.renderProgress = function(progress) {
23
 CanvasRenderer.prototype.renderProgress = function(progress) {

+ 0 - 2
src/player.js Bestand weergeven

58
 	if (this.autoplay) {
58
 	if (this.autoplay) {
59
 		this.play();
59
 		this.play();
60
 	}
60
 	}
61
-
62
-	window.player = this;
63
 };
61
 };
64
 
62
 
65
 Player.prototype.showHide = function(ev) {
63
 Player.prototype.showHide = function(ev) {