Skip to content

Commit 5ecc0a9

Browse files
author
Lauren McCarthy
committed
fix bug with resize closes #448
1 parent 4b4aa29 commit 5ecc0a9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/p5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.js v0.3.13 December 04, 2014 */
1+
/*! p5.js v0.3.13 December 05, 2014 */
22
var shim = function (require) {
33
window.requestDraw = function () {
44
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) {
@@ -1019,7 +1019,7 @@ var p5Image = function (require, core, filters) {
10191019
};
10201020
p5.Image.prototype.resize = function (width, height) {
10211021
width = width || this.canvas.width;
1022-
height = width || this.canvas.height;
1022+
height = height || this.canvas.height;
10231023
var tempCanvas = document.createElement('canvas');
10241024
tempCanvas.width = width;
10251025
tempCanvas.height = height;

0 commit comments

Comments
 (0)