Home | History | Annotate | Download | only in include

Lines Matching refs:height

113         viewportChange: function (deltaX, deltaY, width, height) {
123 height = this._fb_height;
129 if (typeof(height) === "undefined") { height = vp.h; }
133 if (height > this._fb_height) { height = this._fb_height; }
135 if (vp.w !== width || vp.h !== height) {
142 // Change height
143 if (height < vp.h && cr.y2 > vp.y + height - 1) {
144 cr.y2 = vp.y + height - 1;
146 vp.h = height;
149 if (vp.w > 0 && vp.h > 0 && canvas.width > 0 && canvas.height > 0) {
151 var img_height = canvas.height < vp.h ? canvas.height : vp.h;
156 canvas.height = vp.h;
299 resize: function (width, height) {
303 this._fb_height = height;
312 this.resize(this._logo.width, this._logo.height);
328 fillRect: function (x, y, width, height, color) {
330 this._drawCtx.fillRect(x - this._viewportLoc.x, y - this._viewportLoc.y, width, height);
343 startTile: function (x, y, width, height, color) {
346 if (width === 16 && height === 16) {
349 this._tile = this._drawCtx.createImageData(width, height);
364 for (var i = 0; i < width * height * 4; i += 4) {
371 this.fillRect(x, y, width, height, color);
415 blitImage: function (x, y, width, height, arr, offset) {
417 this._bgrxImageData(x, y, this._viewportLoc.x, this._viewportLoc.y, width, height, arr, offset);
419 this._cmapImageData(x, y, this._viewportLoc.x, this._viewportLoc.y, width, height, arr, offset);
423 blitRgbImage: function (x, y , width, height, arr, offset) {
425 this._rgbImageData(x, y, this._viewportLoc.x, this._viewportLoc.y, width, height, arr, offset);
428 this._cmapImageData(x, y, this._viewportLoc.x, this._viewportLoc.y, width, height, arr, offset);
526 var y = canvas.height - (canvas.height * factor);
545 _rgbImageData: function (x, y, vx, vy, width, height, arr, offset) {
546 var img = this._drawCtx.createImageData(width, height);
548 for (var i = 0, j = offset; i < width * height * 4; i += 4, j += 3) {
557 _bgrxImageData: function (x, y, vx, vy, width, height, arr, offset) {
558 var img = this._drawCtx.createImageData(width, height);
560 for (var i = 0, j = offset; i < width * height * 4; i += 4, j += 4) {
569 _cmapImageData: function (x, y, vx, vy, width, height, arr, offset) {
570 var img = this._drawCtx.createImageData(width, height);
573 for (var i = 0, j = offset; i < width * height * 4; i += 4, j++) {
589 this.copyImage(a.old_x, a.old_y, a.x, a.y, a.width, a.height);
592 this.fillRect(a.x, a.y, a.width, a.height, a.color);
595 this.blitImage(a.x, a.y, a.width, a.height, a.data, 0);
598 this.blitRgbImage(a.x, a.y, a.width, a.height, a.data, 0);
625 ['logo', 'rw', 'raw'], // Logo to display when cleared: {"width": w, "height": h, "data": data}
631 ['height', 'rw', 'int'], // Display area height
673 cur.push(h); // 7: height
685 cur.push32le(h * 2); // 30: XOR+AND height