(x, y, width, height, color, fromQueue)
| 314 | } |
| 315 | |
| 316 | fillRect(x, y, width, height, color, fromQueue) { |
| 317 | if (this._renderQ.length !== 0 && !fromQueue) { |
| 318 | this._renderQPush({ |
| 319 | 'type': 'fill', |
| 320 | 'x': x, |
| 321 | 'y': y, |
| 322 | 'width': width, |
| 323 | 'height': height, |
| 324 | 'color': color |
| 325 | }); |
| 326 | } else { |
| 327 | this._setFillColor(color); |
| 328 | this._drawCtx.fillRect(x, y, width, height); |
| 329 | this._damage(x, y, width, height); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | copyImage(oldX, oldY, newX, newY, w, h, fromQueue) { |
| 334 | if (this._renderQ.length !== 0 && !fromQueue) { |
no test coverage detected