emscripten: force resize event when pixel ratio changes Without this, applications can't react to changed canvas size on window zoom.