aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/rdge')
-rw-r--r--js/lib/rdge/texture.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/lib/rdge/texture.js b/js/lib/rdge/texture.js
index 28dc868a..c72864b8 100644
--- a/js/lib/rdge/texture.js
+++ b/js/lib/rdge/texture.js
@@ -207,6 +207,7 @@ function Texture( dstWorld )
207 width = this.nextHighestPowerOfTwo( width ); 207 width = this.nextHighestPowerOfTwo( width );
208 height = this.nextHighestPowerOfTwo( height ); 208 height = this.nextHighestPowerOfTwo( height );
209 } 209 }
210 width = 64; height = 64;
210 211
211 // create a canvas to be used as the image for the texture map 212 // create a canvas to be used as the image for the texture map
212 var doc = srcCanvas.ownerDocument; 213 var doc = srcCanvas.ownerDocument;
@@ -246,6 +247,10 @@ function Texture( dstWorld )
246 var nBytes = width*height*4; 247 var nBytes = width*height*4;
247 for (var i=0; i<nBytes; i++) 248 for (var i=0; i<nBytes; i++)
248 imageData.data[i] = data[i]; 249 imageData.data[i] = data[i];
250 var nPrint = nBytes;
251 if (nPrint > 1000) nPrint = 1000;
252 for (var i=0; i<nPrint; i++)
253 console.log( " " + data[i] );
249 } 254 }
250 } 255 }
251 renderCtx.putImageData( imageData, 0, 0 ); 256 renderCtx.putImageData( imageData, 0, 0 );