MCPcopy Create free account
hub / github.com/apache/cloudstack / _damage

Method _damage

systemvm/agent/noVNC/core/display.js:236–249  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

234
235 // Track what parts of the visible canvas that need updating
236 _damage(x, y, w, h) {
237 if (x < this._damageBounds.left) {
238 this._damageBounds.left = x;
239 }
240 if (y < this._damageBounds.top) {
241 this._damageBounds.top = y;
242 }
243 if ((x + w) > this._damageBounds.right) {
244 this._damageBounds.right = x + w;
245 }
246 if ((y + h) > this._damageBounds.bottom) {
247 this._damageBounds.bottom = y + h;
248 }
249 }
250
251 // Update the visible canvas with the contents of the
252 // rendering canvas

Callers 6

viewportChangePosMethod · 0.95
viewportChangeSizeMethod · 0.95
fillRectMethod · 0.95
copyImageMethod · 0.95
blitImageMethod · 0.95
drawImageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected