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");
  AdjustAspect(w, h);

  _cgl.viewport(0, 0, w, h);
}