resolutionChange method

void resolutionChange(
  1. Event? ev
)

Implementation

void resolutionChange(HTML.Event? ev) {
  int w = _canvas.clientWidth;
  int h = _canvas.clientHeight;
  _canvas.width = w;
  _canvas.height = h;
  print("size change $w $h");
  _perspective.AdjustAspect(w, h);
  viewPortW = w;
  viewPortH = h;
}